micromark
A strong pick. 7th of 9 markdown libraries.
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
Overall7.1
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 6.5, likely 5.5 to 7.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.
- github.com/micromark/micromark: The project itself points most users to remark.
- ubugeeei-prod.github.io/ox-content/performance/index.html: Far slower than markdown-it and marked.
- npm downloadsLast4Weeks: Heavy transitive use that is still growing.
GPT-6.2 Sol: 7.7, likely 6.6 to 8.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.
- github.com/micromark/micromark/blob/4.0.3/readme.md: Describes the HTML API and when higher-level packages fit.
- github.com/privatenumber/gfm-renderer-comparison: Independent comparison puts micromark among the strongest GFM implementations.
- github.com/TanStack/markdown/blob/main/reports/benchmarks.md: Markdown-it was faster on the published Node fixtures.
- github.com/micromark/micromark/issues: The current issue list includes several open performance reports.
- npm versionsLastYear and peers: One core update in a year, with more recent releases from Marked and markdown-it.
Needed by many5.3
How many developers need a tool for this job?
Claude Opus 5.5: 5.0, likely 4.0 to 7.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.
- github.com/micromark/micromark: The README itself says most users should probably use remark instead.
- tanstack.com/markdown/latest/docs/comparison: Described as standards-oriented building blocks for teams that assemble their own renderer.
GPT-6.2 Sol: 5.6, likely 4.4 to 6.9
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.
- jetbrains.com/lp/devecosystem-2023/tech-writing: Markdown was the leading format among surveyed documentation authors.
- github.com/micromark/micromark/blob/4.0.3/readme.md: Documents Node, Deno, browser, and parser extension use.
Helps a lot7.5
How well does it do the job for those who need it?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- github.com/micromark/micromark: Claims 100% CommonMark compliance, about 2k tests, fuzzing and safe-by-default output, with GFM, MDX and math extensions.
- ubugeeei-prod.github.io/ox-content/performance/index.html: Third-party benchmark on about 1 MB of input: markdown-it ~15 ops/s, marked ~14, micromark ~1.
- github.com/orgs/micromark/discussions/29: The maintainer ranks speed last among the goals and does not expect it to match markdown-it.
- npm hasTypes: Ships its own types.
GPT-6.2 Sol: 8.0, likely 7.0 to 9.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.
- npm hasTypes: Type declarations ship with the package.
- github.com/micromark/micromark/blob/4.0.3/readme.md: Documents token positions, extension hooks, and the companion tree API.
- github.com/micromark/micromark/releases/tag/4.0.3: September patch fixed parsing and improved performance.
- github.com/privatenumber/gfm-renderer-comparison: Version 4.0.2 ranked second by mean similarity across 672 GFM spec examples.
- github.com/TanStack/markdown/blob/main/reports/benchmarks.md: Micromark averaged 0.143 ms per fixture, compared with 0.013 for markdown-it and 0.020 for Marked.
- github.com/micromark/micromark/issues/250: Open report shows split UTF-8 bytes being replaced in 4.0.3.
Holds up over time6.9
Will it still be a good choice in two years?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- github commitsLastYear / releasesLastYear: 17 commits and 6 releases (across its packages) in the last year.
- github.com/micromark/micromark/releases: 4.0.3 brought attention fixes and performance work. 4.0.2 came in February.
- github openPullRequests: 26 open pull requests against 41 merged.
- github.com/micromark/micromark: Sponsors include Vercel, Netlify, Salesforce and others.
GPT-6.2 Sol: 6.7, likely 5.4 to 8.0
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.
- github commitsLastYear and releasesLastYear, npm versionsLastYear: 17 commits, six repository releases, and one core npm release.
- github.com/micromark/micromark/releases: The latest release batch contains one core patch and five sibling releases.
- github.com/micromark/micromark/pulls: Several open contributions date to early 2026 or 2025.
- opencollective.com/unified: Unified has active ecosystem funding and names micromark as supported work.
- npm.io/package/micromark: Lists one npm maintainer.
- astro.build/blog/astro-7: Astro replaced its default unified pipeline with Sätteri.
Used widely6.8
How many use it, and is that growing?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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).
- npm downloadsLast4Weeks / downloadsSame4WeeksYearAgo: 379M now against 65.8M a year ago, a ratio of 5.76.
- dependents: 151,327 repos but only 144 packages.
- github stars: 2.2k stars, far below Marked (37k) and markdown-it (22k).
- bluesky posts / hackerNews stories: No direct attention on either.
GPT-6.2 Sol: 6.5, likely 5.2 to 7.8
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.
- npm downloadsLast4Weeks and downloadsSame4WeeksYearAgo, medianDownloadsRatio: Download growth exceeded the catalog baseline.
- dependents and peers: 151,327 indexed repositories and 144 packages, with three peers ahead on repository count.
- github.com/remarkjs/remark/blob/main/packages/remark-parse/lib/index.js: Remark installs the micromark-backed parser through mdast-util-from-markdown.
- github.com/syntax-tree/mdast-util-from-markdown/blob/main/dev/lib/index.js: The tree parser imports micromark directly.
Vouched for7.5
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 5.0 to 8.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.
- chromium.googlesource.com/devtools/devtools-frontend/+/b3cd0a4f0ce68bbba2f63ebed0ec8564643eda2e/node_modules/micromark: Chromium DevTools ships micromark in its dependencies.
- tanstack.com/markdown/latest/docs/comparison: A third party recommends it when exact spec behavior is required.
- unified ecosystem: remark-parse, MDX and react-markdown all parse with micromark.
GPT-6.2 Sol: 8.0, likely 7.0 to 9.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.
- github.com/prettier/prettier/blob/main/src/language-markdown/parse/parse-markdown.js: Prettier uses the micromark-backed tree parser and its syntax extensions.
- github.com/syntax-tree/mdast-util-from-markdown/blob/main/dev/lib/index.js: Confirms the parser Prettier calls uses micromark.
- github.com/microsoft/vscode/issues/344635: A downstream editor profile confirms direct use and documents large-file latency.
- github.com/privatenumber/gfm-renderer-comparison: Independently checks rendering accuracy against spec examples.
Safe6.6
How safe is it to depend on?
Claude Opus 5.5: 7.0, likely 6.0 to 8.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.
- advisories: Zero advisories recorded.
- scorecard: Score 4.5. Code-Review, Branch-Protection, Pinned-Dependencies and Token-Permissions all score 0.
- npm dependencies: 18 dependencies, all in-house micropackages.
- github.com/micromark/micromark: Raw HTML and dangerous protocols are dropped by default. The README advises capping input size.
GPT-6.2 Sol: 6.2, likely 4.9 to 7.5
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.
- advisories total, npm license and dependencies: Zero recorded OSV advisories, MIT, and 18 direct dependencies.
- scorecard score and checks: 4.5 overall, with a security policy and weak repository and workflow controls.
- github.com/micromark/micromark/blob/4.0.3/readme.md#security: Documents HTML and URL defaults and resource exhaustion risks.
- github.com/micromark/micromark/blob/4.0.3/packages/micromark/package.json: Most declared dependencies are micromark modules.
- github.com/micromark/micromark/releases/tag/4.0.3: GitHub verifies the release commit signature.
- npm.io/package/micromark: Lists a single maintainer for the npm package.
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
- npm downloads, 4 weeks
- 379M ×5.8 in a year
- GitHub stars
- 2.2k
- Commits, 12 months
- 17
- npm version
- 4.0.3 Sept 2026
- Versions, 12 months
- 1
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- 4.5 out of 10, Nov 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (micromark/micromark), npm (micromark), 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