markdown-it
A strong pick. 2nd of 9 markdown libraries.
markdown-it is a fast parser that follows CommonMark and turns Markdown into HTML through a token stream. It has a large plugin ecosystem and has been actively maintained again in 2026, with a TypeScript rewrite in v15. It is a strong choice for rendering Markdown to HTML with custom syntax, but remark/micromark suit tree transforms better, and Marked is growing faster for plain rendering.
Best for: Docs sites, editors and server renderers that need CommonMark-correct HTML with plugins for footnotes, containers, math or custom syntax.
Scores
Overall7.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 7.5, likely 6.5 to 8.0
markdown-it is a strong, proven pick when you need CommonMark-correct HTML with plugins, and its 2026 revival and TypeScript rewrite improve its outlook. Marked grows faster for simple rendering, and remark/micromark are better for tree transforms. The run of DoS advisories argues for keeping it on the latest version.
- npm downloadsSame4WeeksYearAgo: Growth below median and below the leading peers
- github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md: Active 2026 maintenance, v15 TS rewrite
- pistack.xyz/posts/2026-08-18-marked-vs-markdown-it-vs-remark-markdown-parser-comparison: Positioned as the extensible CommonMark choice
GPT-6.2 Sol: 8.2, likely 7.1 to 9.1
markdown-it is a strong pick for extensible CommonMark-to-HTML rendering, with competitive speed, current patches, and proven integrations. Marked is a strong peer for straightforward HTML rendering and is gaining ground faster. remark is a better fit when the project centers on editing and serializing a Markdown tree. Slower relative growth, v15 plugin migration, and reliance on one listed npm collaborator keep it below a category-wide default.
- github.com/Princesseuh/web-markdown-benchmark: Current stable rendering speed against Marked and remark
- github.com/remarkjs/remark: Native Markdown tree parsing, transformation and serialization
- code.visualstudio.com/api/extension-guides/markdown-extension: Established preview and plugin integration
- github.com/vuejs/vitepress/issues/5345: Downstream migration work for v15
- npmjs.com/package/markdown-it?activeTab=code: One listed npm collaborator
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, peers, medianDownloadsRatio: Growth trails both the catalog baseline and Marked
Needed by many6.3
How many developers need a tool for this job?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Rendering Markdown is common in docs sites, blogs, CMSs, editors and chat UIs. markdown-it runs on any JS runtime and is not tied to a framework. It covers parse-and-render well but is less suited to the tree-editing half of the category.
- dependents: 205k dependent repos and 8.5k packages
- pistack.xyz/posts/2026-08-18-marked-vs-markdown-it-vs-remark-markdown-parser-comparison: Recommended for SSGs, SSR and docs platforms
GPT-6.2 Sol: 5.5, likely 4.2 to 6.7
Markdown rendering serves documentation, publishing, and editor workflows across server and browser projects. markdown-it's focus on HTML and tokens narrows its fit for component rendering and tree editing. The State of JavaScript survey provides context on content-oriented frameworks but does not measure how many developers need a standalone Markdown parser.
- 2025.stateofjs.com/en-US/libraries/meta-frameworks: Survey context for content and documentation frameworks
- markdown-it.github.io/markdown-it: Node and browser use, CommonMark rendering and extensions
- github.com/markdown-it/markdown-it/blob/15.0.3/docs/architecture.md: Token stream feeds an HTML renderer
Helps a lot8.0
How well does it do the job for those who need it?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
It follows CommonMark closely, has a well-designed rule and plugin API, a large plugin ecosystem, safe defaults and now bundled TypeScript types. AI agents know it well. It loses points because its token stream is weaker than mdast for transforms, and because the repeated quadratic-time bugs show that its performance under hostile input was not robust.
- github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md: v15 TypeScript rewrite, many spec-correctness fixes
- pkgpulse.com/guides/marked-vs-remark-vs-markdown-it-parsers-2026: Suits custom dialects; token stream less suited to structural analysis
- pistack.xyz/posts/2026-08-18-marked-vs-markdown-it-vs-remark-markdown-parser-comparison: Large plugin ecosystem, fast but slower than marked
GPT-6.2 Sol: 8.4, likely 7.4 to 9.2
Version 15.0.3 pairs flexible rendering rules with bundled types, and the documented render call is straightforward for developers and coding agents. An independent benchmark puts it close to Marked on medium and large CommonMark fixtures. Partial GFM support and the work of converting tokens to a tree limit its fit. The benchmark covers a small set of documents, and coding-agent success has little direct evidence.
- markdown-it.github.io/markdown-it: Current API reference and rendering example
- github.com/Princesseuh/web-markdown-benchmark: Version 15.0.3 rendering timings and GFM limits
- github.com/markdown-it/markdown-it/blob/15.0.3/docs/architecture.md: Separate parser and renderer rules with token-stream output
- github.com/markdown-it/markdown-it/blob/master/docs/migration/migration_v15.md: Bundled declarations and public API compatibility
Holds up over time7.3
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 6.0 to 8.5
After a quiet 2025, 2026 brought 128 commits, ten npm versions, a major v15 release and fast security fixes. The backlog is small, with 17 open issues. It rests on a small core team with no visible funding, and v15 included breaking changes to linkify defaults and subpath exports.
- github commitsLastYear: 128 commits; 10 npm versions last year
- github openIssues: 17 open vs 942 closed
- github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md: Releases 14.1.1 to 15.0.3 during 2026, with breaking changes in 15.0.0
GPT-6.2 Sol: 7.5, likely 6.2 to 8.6
The project logged 128 commits and ten npm releases in the past year, including fixes for both v14 and v15. The v15 migration preserves the main API, while VitePress's upgrade tracker records plugin and type work. npm lists one collaborator, and the sponsorship page gives little indication of how much maintenance it funds. Issue and pull request totals give limited evidence about response times.
- github commitsLastYear, openIssues, openPullRequests: 128 commits, 17 open issues and three open pull requests
- npm versionsLastYear, latestPublishedAt: Ten versions, latest published October 16, 2026
- npmjs.com/package/markdown-it?activeTab=versions: Active v15 and v14 release lines
- npmjs.com/package/markdown-it?activeTab=code: One listed npm collaborator
- github.com/sponsors/markdown-it: Public sponsorship with undisclosed funding amounts
- github.com/vuejs/vitepress/issues/5345: Downstream v15 upgrade tracks type and plugin changes
- github.com/markdown-it/markdown-it/blob/master/docs/migration/migration_v15.md: Documents continuity of the main parser API
Used widely7.5
How many use it, and is that growing?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
It has about 159M downloads per 4 weeks and 205k dependent repos, second among the peers to Marked. Much of the download count is transitive, from VS Code tooling, VitePress and others. Its year-over-year ratio of 3.5 is below the 4.1 median and well below Marked and react-markdown, so it is slowly losing share.
- npm downloadsLast4Weeks: 158.9M now vs 45.1M a year ago, ratio 3.5 below median 4.1
- peers Marked: Marked has 509M downloads, ratio about 7
- dependents repos: 205k repos, comparable to remark's 221k
GPT-6.2 Sol: 6.9, likely 5.9 to 8.0
ecosyste.ms found about 205,000 dependent repositories, close to remark and well behind Marked. Four-week downloads rose from 45.1 million to 158.9 million, a 3.52× increase that trailed the 4.1× catalog median and Marked's 7.04× growth. Repeat installs and downstream frameworks contribute to downloads, and npm shows more recent downloads for the legacy release than for 15.0.3. Those figures leave the number of new teams choosing v15 uncertain.
- dependents repos, packages: 205,037 repositories and 8,475 npm packages tracked
- npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 3.52× year-over-year growth against a 4.1× baseline
- peers dependentRepos, downloadsLast4Weeks, downloadsSame4WeeksYearAgo: Marked has more tracked dependents and faster growth
- github stars, bluesky posts: 22,053 stars and three tracked Bluesky posts
- npmjs.com/package/markdown-it?activeTab=versions: The v14 legacy tag outdraws the latest v15 tag
Vouched for8.2
Who stands behind it being good?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
Large projects run it in production, including VS Code's Markdown preview, VitePress, Slidev and Discourse. Independent 2026 comparisons consistently name it the plugin-rich, CommonMark-correct choice. It has little survey or social signal of its own.
- VS Code / VitePress: Both render Markdown with markdown-it
- pistack.xyz/posts/2026-08-18-marked-vs-markdown-it-vs-remark-markdown-parser-comparison: Independent comparison recommends it for docs and SSR
- pkgpulse.com/guides/marked-vs-remark-vs-markdown-it-parsers-2026: Recommended for editor previews and custom dialects
GPT-6.2 Sol: 8.4, likely 7.3 to 9.3
VS Code, VitePress, and Eleventy all build their Markdown rendering around markdown-it and expose its plugin API to users. Independent benchmarks also show competitive HTML rendering speeds. These integrations establish a strong track record for the library, though Eleventy documents v14 use and VitePress's tracker shows that the move to v15 was still in progress.
- code.visualstudio.com/api/extension-guides/markdown-extension: VS Code preview exposes markdown-it plugins
- vitepress.dev/guide/markdown: VitePress uses markdown-it as its renderer
- 11ty.dev/docs/languages/markdown: Eleventy documents markdown-it as its engine and lists v14 for Eleventy 3
- github.com/vuejs/vitepress/issues/5345: VitePress tracks the v15 migration
- github.com/quadratz/markdown-parser-benchmark: Independent rendering tests with and without plugins
Safe6.8
How safe is it to depend on?
Claude Opus 5.5: 6.5, likely 5.5 to 7.5
Its licence is MIT and it pulls in six small dependencies. It has no supply-chain incidents, and its safe default escapes raw HTML. It had six denial-of-service advisories in 24 months, two of them high. All were fixed quickly in 14.x and 15.x, including GHSA-gfr2 fixed in 15.0.3. The Scorecard is old (2022) and shows weak branch protection and code review.
- advisories last24Months: 6 quadratic-time DoS advisories, two rated HIGH
- osv.dev/vulnerability/GHSA-gfr2-rv44-r23c: Fixed in 15.0.3 and 14.3.3
- osv.dev/GHSA-253c-mchw-3w2r: Linkify quadratic paths fixed in 14.3.1
- scorecard: 6.5 from 2022; Branch-Protection 0, Code-Review 3
GPT-6.2 Sol: 7.1, likely 5.8 to 8.3
The MIT package has six direct dependencies and disables raw HTML by default. Recent denial-of-service advisories were patched by the time they were published, including a high-severity issue that affected default settings and was fixed in 15.0.3. Tests run before packaging, and npm lists one collaborator. The 6.5 OpenSSF Scorecard flagged weak review, branch protection, and token permissions in 2022, so it gives limited insight into current release controls.
- github.com/markdown-it/markdown-it/blob/15.0.3/package.json: MIT license, six dependencies and a prepack test script
- github.com/markdown-it/markdown-it/blob/15.0.3/docs/safety.md: Raw HTML is off by default
- osv.dev/vulnerability/GHSA-gfr2-rv44-r23c: High-severity default-settings issue fixed in 15.0.3
- osv.dev/vulnerability/GHSA-r7fv-28h4-cvq7: High-severity smartquotes issue fixed in 15.0.2
- github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md: Security fixes shipped across three v15 patch releases
- npmjs.com/package/markdown-it?activeTab=code: One listed npm collaborator
- scorecard score, date, checks: 6.5 in 2022, with weak review and workflow controls
Good
- It passes the CommonMark spec and has a mature rule and plugin API, with official plugins for footnotes, containers, definition lists and more.
- It is safe by default for untrusted input: html is false, and links are validated.
- Major tools run it in production, including VS Code's Markdown preview and VitePress.
- v15 rewrote it in TypeScript with bundled types and a browser export, and 2026 brought frequent bug-fix releases.
Bad
- Six denial-of-service advisories from quadratic-time parsing appeared within two years, several of them in 2026, including a regression present since v14.
- Its token stream is not a full syntax tree, so structural analysis and transforms are clumsier than with remark/mdast.
- GFM tables and strikethrough work by default, but task lists, footnotes and similar features need plugins and manual setup.
- Downloads grew more slowly than the median and than Marked, micromark and react-markdown.
The numbers
- npm downloads, 4 weeks
- 159M ×3.5 in a year
- GitHub stars
- 22k
- Commits, 12 months
- 128
- npm version
- 15.0.3 Oct 2026
- Versions, 12 months
- 10
- Advisories, 24 months
- 6 of 8 ever
- OpenSSF Scorecard
- 6.5 out of 10, Aug 2022
- Licence
- MIT
Read on 21 November 2026 from GitHub (markdown-it/markdown-it), npm (markdown-it), OSV and the OpenSSF Scorecard.
Markdown libraries
- 8.3Marked
- 7.9markdown-it
- 7.7react-markdown
- 7.7Streamdown
- 7.6remark
- 7.4MDX
- 7.1micromark
- 7.0Markdoc
- 4.1Showdown