- The syntax for this version of this simplified markdown is slightly different from the original.
- It is trivial to modify the code in order to support the original syntax, I just think this is more clear.
- The converter just provides a basic html file with no styles.
- Only the body is provided, and is not pre formatted.
Name | Syntax | Info |
---|---|---|
Heading | # |
Can be reapted upto 6 times |
Lists | - |
The number of times it is repeated shows the depth of the list |
Quotes | > |
The number of times it is repeated shows the depth of the blockquote |
Name | Syntax |
---|---|
Bold/Strong | * bold element here * |
Italics/Emphasis | / italics element here / |
Strikethrough | ~ ㅤstrikethrough element here ~ |
Code blocks | ` code element here ` |
Name | Syntax |
---|---|
Newline/Line Break | Leave an empty line |
- Simplified Lexer/Tokenizer
- The previous did too much and did some work that was supposed to be done by the parser.
- Parsing regular text was unnecessarily complicated in the previous version.
After compiling, run the following command to convert the source file.
./simplemdconverter <source_file> <converted_html_file>
- Use the provided
CMakeLists.txt
file to generate a makefile.