Converter for our own .mds
format file
- Headings (from
#
to######
) - Text decorations (italics, bold and so
noon) - Horizontal dividers
- Lists of any type
- Checkboxes
- Links and hyperlinks
- Code blocks (without syntax highlighting)
- Tables
- Images
If you have stack installed and GHC configured you can simply build:
mkdir build
mkdir runnable
make build
and run:
./runnable/parser <input file> <output file>
or if you want to use this parser in stream mode, use:
./runnable/parser -c
If you dont have stack installed or GHC configured, use build and run scripts
You can see an examples in this directory
For the comparing i used Markdown All in One
VS Code extension to render the same file, it renders it with not bad styles, that are provided here
You can combine file with styles and output file to see some beauteful example render.
Test data (Markdown): ~5000 lines
Output data (HTML): ~10000 lines
Total execution time: 0.0140266s (built-in-code measurements)
Total execution time: 0.0277915s (100 runs written in python)