Markdown to article converter. #90

Open
opened 5 months ago by Umbreon · 12 comments
Umbreon commented 5 months ago

Currently every article on spyware watchdog is a .html file, this means that major changes to the site will mean that some article's design may be outdated (There are still articles that have the old website design). It might also mean some inconsistencies between articles (Some older articles use <font color> for the spyware level.
A potential solution to these problems could be to make a simple (python?) program that converts a txt file to a article, the converter could use a modified version of markdown to remove the need to use html (markdown supports using html so if you need to use html for something it would still be possible)
A simple example for what the file could be:

Title: Chrome But With Pie
Rating: 8
Catagory: Browser
Created: 2021.07.03
Modified: 2021.07.02
Version: 91.1337 # Version of the software
Sources:
1. [Chrome but with pie about page](https://www.ChromeButWithPie.com/about)
2. [Bing](https://www.bing.com/)

Introduction:
Chrome But With Pie is a fork of chrome but every image is replaced with pie. Their website states "CBWP Is a more secure alternative to chrome as no images are loaded there**thor** no tracking pixels can be loaded."

Document:
Chrome But With Pie (CBWP) claims to be more secure because of its **amazing** feature. What is that feature? _Replacing every image with pie_[^1], Lorem ipsum dolor sit amet.

## Major flaws
Lorem

## Advantages 
Lorim

Some possible custom markdown elements:

[^0] Links to the specified source number

The example I've put above is just an example and has some issues.

This change would also allow for some other features, such as:
Multiple article designs (Standard, Raw, Text only etc.)
Automatic article index
(Some other idea that I forgot)

This is just an idea and has not been completely refined, I can make the python program so if you would like an demo program I can quickly make one.

Currently every article on spyware watchdog is a .html file, this means that major changes to the site will mean that some article's design may be outdated (There are still articles that have the old website design). It might also mean some inconsistencies between articles (Some older articles use `<font color>` for the spyware level. A potential solution to these problems could be to make a simple (python?) program that converts a txt file to a article, the converter could use a modified version of markdown to remove the need to use html (markdown supports using html so if you need to use html for something it would still be possible) A simple example for what the file could be: ``` Title: Chrome But With Pie Rating: 8 Catagory: Browser Created: 2021.07.03 Modified: 2021.07.02 Version: 91.1337 # Version of the software Sources: 1. [Chrome but with pie about page](https://www.ChromeButWithPie.com/about) 2. [Bing](https://www.bing.com/) Introduction: Chrome But With Pie is a fork of chrome but every image is replaced with pie. Their website states "CBWP Is a more secure alternative to chrome as no images are loaded there**thor** no tracking pixels can be loaded." Document: Chrome But With Pie (CBWP) claims to be more secure because of its **amazing** feature. What is that feature? _Replacing every image with pie_[^1], Lorem ipsum dolor sit amet. ## Major flaws Lorem ## Advantages Lorim ``` Some possible custom markdown elements: ``` [^0] Links to the specified source number ``` The example I've put above is just an example and has some issues. This change would also allow for some other features, such as: Multiple article designs (Standard, Raw, Text only etc.) Automatic article index (Some other idea that I forgot) This is just an idea and has not been completely refined, I can make the python program so if you would like an demo program I can quickly make one.
Poster

Sorry for the crappy issue, I'm bad at writing :P

Sorry for the crappy issue, I'm bad at writing :P
Umbreon changed title from txt to article converter. to Markdown to article converter. 5 months ago
Poster

I made a quick messy example program to show how it could be implemented, https://codeberg.org/Umbreon/SpywareWatchdog, inside of the src folder. It has quite a few issues and the .MD file has to be formatted in a very specific way but it should work fine.

I made a quick messy example program to show how it **could** be implemented, https://codeberg.org/Umbreon/SpywareWatchdog, inside of the src folder. It has quite a few issues and the .MD file has to be formatted in a very specific way but it should work fine.
baobab added the
enhancement
critical
labels 5 months ago
Owner

Looks like something worth looking into.

Looks like something worth looking into.
Poster

Looks like something worth looking into.

I could message you through xmpp later on if you would like to discuss?

> Looks like something worth looking into. I could message you through xmpp later on if you would like to discuss?

What is stantard design? What html page has the ideal, stantard template, style?

What is stantard design? What html page has the ideal, stantard template, style?
Poster

What is stantard design? What html page has the ideal, stantard template, style?

what do you mean?

> What is stantard design? What html page has the ideal, stantard template, style? what do you mean?

@Umbreon, i got answer - #91

@Umbreon, i got answer - https://codeberg.org/shadow/SpywareWatchdog/issues/91#issuecomment-240950
Poster

@baobab Is this something you are willing to accept if I create a pull request?

@baobab Is this something you are willing to accept if I create a pull request?
Owner

Yes, that would be awesome. Thank you @Umbreon.

Yes, that would be awesome. Thank you @Umbreon.
Poster

I'm currently away from my main PC and I think that there are some commits on it that have not been pushed to my fork so I won't be able to work on it for a bit.

I'm currently away from my main PC and I think that there are some commits on it that have not been pushed to my fork so I won't be able to work on it for a bit.
Owner

Ok, thank you.

Ok, thank you.
Owner

Hey, this is an interesting idea.
Over the course of last year I ran into a similar problem with ShadowWiki, and wrote my own markdown converter program called "NAMAC" (Nano Markdown Compiler).
I think it would solve 80 to 90% of the same problems you are describing, as it has templating and sourcing/webography. It can produce documents in both XHTML and HTML5.

Here's the git repo for it: http://6o2ewykepkp7k65bvxjqhoqmh3osksxrhpd3e6oyhiw5yl3skbyvzuad.onion/NAMAC/log.html

And for an example of what it is capable of, the repo for the ShadowWiki site: http://6o2ewykepkp7k65bvxjqhoqmh3osksxrhpd3e6oyhiw5yl3skbyvzuad.onion/wiki/log.html
The site itself: http://abrx6wcpzkfpwxb5eb2wsra2wnkrv2macdtkpnrepswodz5jxd4schyd.onion/

The program is written in C and could be easily tweaked/changed to add more specifically needed features.

Hey, this is an interesting idea. Over the course of last year I ran into a similar problem with ShadowWiki, and wrote my own markdown converter program called "NAMAC" (Nano Markdown Compiler). I think it would solve 80 to 90% of the same problems you are describing, as it has templating and sourcing/webography. It can produce documents in both XHTML and HTML5. Here's the git repo for it: http://6o2ewykepkp7k65bvxjqhoqmh3osksxrhpd3e6oyhiw5yl3skbyvzuad.onion/NAMAC/log.html And for an example of what it is capable of, the repo for the ShadowWiki site: http://6o2ewykepkp7k65bvxjqhoqmh3osksxrhpd3e6oyhiw5yl3skbyvzuad.onion/wiki/log.html The site itself: http://abrx6wcpzkfpwxb5eb2wsra2wnkrv2macdtkpnrepswodz5jxd4schyd.onion/ The program is written in C and could be easily tweaked/changed to add more specifically needed features.
Sign in to join this conversation.
No Milestone
No Assignees
4 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.