# Markdown libraries

Turn Markdown into HTML or components, and read or change it as a tree. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [Marked](https://elestia.ai/opensource/markdown/marked/index.md) | 8.3 | 6.5 | 7.9 | 8.2 | 9.0 | 7.7 | 7.5 | Projects that need fast, lightweight Markdown-to-HTML conversion with GFM support, on the server or in the browser. |
| 2 | [markdown-it](https://elestia.ai/opensource/markdown/markdown-it/index.md) | 7.9 | 6.3 | 8.0 | 7.3 | 7.5 | 8.2 | 6.8 | Docs sites, editors and server renderers that need CommonMark-correct HTML with plugins for footnotes, containers, math or custom syntax. |
| 3 | [react-markdown](https://elestia.ai/opensource/markdown/react-markdown/index.md) | 7.7 | 5.5 | 7.9 | 6.4 | 7.1 | 7.5 | 6.9 | React teams that want to render Markdown safely as components, with remark and rehype plugins, and without dangerouslySetInnerHTML. |
| 4 | [Streamdown](https://elestia.ai/opensource/markdown/streamdown/index.md) | 7.7 | 4.1 | 7.9 | 7.6 | 6.2 | 6.7 | 7.1 | React teams building AI chat or assistant interfaces that render streamed LLM output as Markdown. |
| 5 | [remark](https://elestia.ai/opensource/markdown/remark/index.md) | 7.6 | 5.8 | 8.3 | 6.4 | 7.1 | 8.3 | 7.0 | Teams that need to inspect, lint or rewrite Markdown as a syntax tree, or that build content pipelines with plugins, such as docs sites, blogs and MDX. |
| 6 | [MDX](https://elestia.ai/opensource/markdown/mdx/index.md) | 7.4 | 4.7 | 7.9 | 6.4 | 6.8 | 8.2 | 6.1 | Teams building docs sites, blogs or design-system docs that need React or other JSX components inside Markdown content they write themselves. |
| 7 | [micromark](https://elestia.ai/opensource/markdown/micromark/index.md) | 7.1 | 5.3 | 7.5 | 6.9 | 6.8 | 7.5 | 6.6 | Tool and library authors who want strict CommonMark/GFM output, safe HTML by default, a small bundle or access to tokens with positions. |
| 8 | [Markdoc](https://elestia.ai/opensource/markdown/markdoc/index.md) | 7.0 | 4.4 | 7.4 | 7.5 | 4.2 | 7.1 | 8.3 | Teams building large, structured documentation sites who want validated, declarative components in Markdown without MDX's arbitrary JavaScript. |
| 9 | [Showdown](https://elestia.ai/opensource/markdown/showdown/index.md) | 4.1 | 5.9 | 4.8 | 3.7 | 4.3 | 3.3 | 3.5 | Existing projects that already use Showdown, or that need its built-in HTML-to-Markdown conversion and sanitize its output. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| Marked | 509M | ×7.0 | 37k | 299 | Nov 2026 | 2 |
| markdown-it | 159M | ×3.5 | 22k | 128 | Oct 2026 | 6 |
| react-markdown | 226M | ×7.4 | 16k | 5 | Mar 2025 | 0 |
| Streamdown | 44M | ×44 | 5.8k | 503 | Nov 2026 | 0 |
| remark | 39M | ×3.7 | 9k | 7 | Sept 2023 | 0 |
| MDX | 64M | ×4.7 | 20k | 21 | Aug 2025 | 0 |
| micromark | 379M | ×5.8 | 2.2k | 17 | Sept 2026 | 0 |
| Markdoc | 3.6M | ×5.8 | 8.5k | 54 | Nov 2026 | 0 |
| Showdown | 7.4M | +90% | 15k | 241 | Apr 2022 | 2 |

All categories: https://elestia.ai/opensource/index.md
