Skip to content

Converter for our own .mds format file, written in pure Haskell

License

Notifications You must be signed in to change notification settings

markdown-docs/mds-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mds-converter

Converter for our own .mds format file

Common features

  • Headings (from # to ######)
  • Text decorations (italics, bold and so no on)
  • Horizontal dividers
  • Lists of any type
  • Checkboxes
  • Links and hyperlinks
  • Code blocks (without syntax highlighting)
  • Tables
  • Images

How to run

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

Examples

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.

Perfomance tests

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)

About

Converter for our own .mds format file, written in pure Haskell

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages