# micromark: 7.1 out of 10

A strong pick. 7th of 9 in [Markdown libraries](https://elestia.ai/opensource/markdown/index.md).

micromark is the small, safe-by-default, CommonMark- and GFM-compliant parser underneath remark, MDX and react-markdown. It is a sound low-level base. Most apps should use it indirectly through remark, or pick markdown-it or marked if speed or a simpler API matters more.

**Best for:** Tool and library authors who want strict CommonMark/GFM output, safe HTML by default, a small bundle or access to tokens with positions.

## Scores

- **Overall: 7.1** (likely 6.1 to 8.1)
  - Claude Opus 5.5 (6.5): It is a correct, safe and well-backed parser, and a strong pick if you need spec-exact HTML or tokens in a small bundle. For most app developers, remark (built on it) gives the tree tooling. markdown-it or marked are faster and simpler for plain HTML output. So it ranks as a solid building block rather than the default choice.
  - GPT-6.2 Sol (7.7): Pick micromark for faithful Markdown-to-HTML rendering or tooling that needs precise syntax positions. Remark is easier for tree transforms, react-markdown is more direct for React components, and markdown-it has the throughput advantage on the tested fixtures. Strong downstream use supports the choice, while the slow patch cadence and open performance issues make it a less certain default for new projects.
- **Needed by many: 5.3** (likely 4.2 to 7.0)
  - Claude Opus 5.5 (5.0): Many JS developers need to render Markdown, but few need a token-level parser for that. Most reach micromark through remark, MDX or react-markdown and never call it themselves. Its direct audience is people building tools and libraries.
  - GPT-6.2 Sol (5.6): Markdown rendering comes up in documentation sites, editors, publishing tools, and chat interfaces. Micromark works in Node and browsers, and its low-level API is most relevant to teams that need faithful HTML or parser control. Surveys show that developers author in Markdown, but only a subset need to integrate a parser themselves.
- **Helps a lot: 7.5** (likely 6.5 to 8.5)
  - Claude Opus 5.5 (7.0): It is among the most spec-correct JS parsers, with safe defaults, positional tokens and a rich set of official extensions. It is clearly slower than markdown-it and marked. Its API is low level: you need extra packages to get a tree or components, and writing your own extensions is hard. Good TypeScript types and thorough docs help.
  - GPT-6.2 Sol (8.0): Version 4.0.3 has a small, documented HTML API with TypeScript types and detailed token positions. The previous patch ranked near the top on independent GFM conformance tests, and 4.0.3 shipped parsing and performance fixes. TanStack still measured slower rendering than Marked and markdown-it, and an open report identifies a UTF-8 bug in the Node stream. Custom syntax requires lower-level hooks, and tree editing is easier in remark.
- **Holds up over time: 6.9** (likely 5.7 to 8.0)
  - Claude Opus 5.5 (7.0): remark, MDX and react-markdown depend on it, and the unified collective funds it through OpenCollective sponsors, so it is unlikely to be dropped. Work is slow but steady: 4.0.3 shipped in September 2026 with fixes and speed work. Its main maintainer carries much of the load, and 26 pull requests are open against 41 merged.
  - GPT-6.2 Sol (6.7): The September patch and unified's funded collective support continued maintenance. The repo logged 17 commits in a year, and five of its six releases were for sibling packages. Several pull requests have been open for months, and the npm listing shows one maintainer. Astro 7 moved its default pipeline to Sätteri while keeping unified available as an option.
- **Used widely: 6.8** (likely 5.6 to 7.9)
  - Claude Opus 5.5 (7.0): It has 379M downloads in 4 weeks, up 5.8x from a year ago, which beats the 4.1 median. Most of those installs come through remark, react-markdown, MDX and AI chat UIs, not from developers choosing it. About 151k dependent repos is a large count, but few packages pick it directly (144).
  - GPT-6.2 Sol (6.5): Four-week downloads rose from 65.8 million to 379.2 million, or 5.76 times, ahead of the 4.1 times catalog median and behind Marked's 7.04 times. The 151,327 indexed dependent repositories show substantial use, though Marked, markdown-it, and remark each have larger counts. Remark and other tools install micromark indirectly, so the download surge leaves considerable uncertainty about how many new projects chose it directly.
- **Vouched for: 7.5** (likely 6.0 to 8.5)
  - Claude Opus 5.5 (7.0): Major tools rely on it in production through remark and MDX, including Docusaurus, Astro, Next.js MDX and react-markdown, and Chromium DevTools vendors it. Independent comparisons praise its spec correctness but score it low on speed. There is no survey data on it directly.
  - GPT-6.2 Sol (8.0): Prettier uses micromark through its tree parser, and the VS Code Markdown editor uses it directly. Independent GFM tests support its accuracy, and a VS Code profile shows the cost of reparsing large files on each keystroke. These sources provide strong evidence for parser tooling, while project-specific satisfaction data is sparse.
- **Safe: 6.6** (likely 5.5 to 7.8)
  - Claude Opus 5.5 (7.0): There are no advisories on record, output is safe by default, and the licence is MIT. Its 18 dependencies are small micromark-* packages from the same team. The Scorecard is weak at 4.5, with no branch protection, no code review and unpinned dependencies. Memory exhaustion on huge input is documented but not prevented.
  - GPT-6.2 Sol (6.2): The MIT-licensed core escapes raw HTML, filters unsafe URL schemes by default, and had zero OSV advisories in the snapshot. The project documents a risk of excessive resource use on some inputs, and the core declares 18 direct dependencies, mostly its own split-out modules. OpenSSF Scorecard gives it 4.5 out of 10, with zeroes for branch protection, code review, and workflow token permissions. The 4.0.3 Git commit is signed and the npm listing names one maintainer, while npm artifact provenance remains unverified.

## Good

- It follows CommonMark and GFM closely, backed by about 2,000 tests, full code coverage and fuzzing.
- It is safe by default: raw HTML and dangerous URL protocols are encoded or dropped unless you opt in.
- Official extensions cover GFM, MDX, math, directives and frontmatter, and the bundle stays about 14 kB.
- It is the parser under remark, mdast-util-from-markdown, MDX and react-markdown, so it is tested heavily in real use.

## Bad

- Independent benchmarks put it well behind markdown-it and marked, by roughly 10x or more on large inputs.
- It is low level: it gives an HTML string or tokens, so you need mdast-util-from-markdown or remark to get a tree you can change.
- Development is slow: 17 commits in a year and 26 open pull requests waiting.
- The README warns that huge or adversarial input can use up memory, so you must cap input size yourself.

## The numbers

- Downloads, 4 weeks: 379M
- In a year: ×5.8
- GitHub stars: 2.2k
- Commits, 12 months: 17
- Last npm release: Sept 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/micromark/micromark
- npm: https://www.npmjs.com/package/micromark

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.
