Built a Markdown to HTML Converter
Built a Markdown to HTML Converter
After two weeks of working on this project of building markdown to HTML converter/ compiler, It's finally done. It's called yamper (a python package). Supports most of the md elements like headings, ordered and unordered lists, code blocks, blockquotes, images and links as well as inline elements like bold, italic, strike-through and gfm emojis . Tables, nested lists, alerts etc. are not supported yet/ Will be working on them now. The package can be used in a different project or simply on command line. Just pass in the path of the md file like this: yamper '../path_to_md'. There is also support for choosing template (currently supports 3- standard-light, standard-dark and plain). The standard templates are pre-styles and code highlighted using prism[.]js cdn. Don't know how it'd be useful to you, but you can also generate tokens from the lexer for your md file. I struggled at building the lexer (actually at designing it) and posted on this r/Compilers. Someone pointed out to the commonmark spec, which made it designing much easier. After that, building the parser and renderer is quite straight forward. Skipped building the AST from the parser and instead directly converted it to HTML, though. For more detailed usage instructions and to explore the code, visit the GitHub repo: https://github.com/useDeep/yamper or just try for yourself using pip install yamper
Share cardActual performance
Launch Intel predictions
Analyze your own launch →Correct prediction on native model
Similar products
Markdown 2 HTML converter
Markdown <-> HTML Converter
Markdown to HTML Converter
HTML to Markdown – Free HTML to Markdown Online Converter
Serve markdown and see HTML
An opinionated markdown-to-HTML tutorial publisher
HTML to Hiccup Converter
Ws2markdown, a WordStar to Markdown Converter
Woofmark – Markdown, HTML, and WYSIWYG Editor
Woofmark – Markdown, HTML, and WYSIWYG Editor