Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed
commonmarkmarkdownjavascript
关键指标
Star 增长趋势
Star
22k
Forks
1.9k
周增长
+16
Issues
9
10k20k
2014年12月2016年11月2018年11月2020年11月2022年11月2024年10月2026年10月
制品库npm
README
markdown-it
Markdown parser done right. Fast and easy to extend.
- Follows the CommonMark spec + adds syntax extensions & sugar (URL autolinking, typographer).
- Configurable syntax! You can add new rules and even replace existing ones.
- High speed.
- Safe by default.
- Community-written plugins and other packages on npm.
[!NOTE] If you are upgrading to v15, see the migration guide.
Documentation >>
Install (node.js):
npm install markdown-it
For 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.
Usage
import MarkdownIt from 'markdown-it'
const md = new MarkdownIt()
const result = md.render('# markdown-it rulezz!')