How do browsers render markdown files?? For example in this website itself(dev.to) ,users write the posts in markdown and it gets displayed in form of html. Just curious to know how is it done.
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (3)
There are libraries that transform markdown files to HTML that is then rendered by the browser.
markdown-it / markdown-it
Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed
markdown-it
Live demo
Table of content
Install
node.js & bower:
browser (CDN):
Usage examples
See also:
Simple
The real issue is that Markdown is not a real file format, it's just a small set of simple ideas, but unsufficient in practice, so everyone make his own Markdown.
There are much better file formats like asciidoctor.org/
Unfortunately it's a case of "worse is better" where the worse solution wins because it's more popular
Ok, so There are no direct method to render md files. Can you suggest me how can I convert markdown to HTML in flask framework.
I would google "markdown python library"