Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed
Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed
Markdown parser done right. Fast and easy to extend.
[!NOTE] If you are upgrading to v15, see the migration guide.
npm install markdown-itFor a quick look at dist/ folder contents, see https://unpkg.com/markdown-it/.
For browser you can use unpkg.com, esm.sh or any other CDN, which mirror npm
registry.
import MarkdownIt from 'markdown-it'
const md = new MarkdownIt()
const result = md.render('# markdown-it rulezz!')Link reference definitions: three divergences from CommonMark 0.31.2
Since v13 `linkify` incorrectly parses links with escaped characters
Export interfaces like `ScannedDelimiters`
Disabling the "code" rule doesn't disable code parsing, just code rendering
Centralise indented code block checks
Create attribute with null value
Header anchors [needs discussion]
list sourceMap end row includes trailing blank lines