Elestia Open Source Ratings
7.0

Markdoc

A strong pick. 8th of 9 markdown libraries.

Markdoc is Stripe's Markdown-based authoring framework. It adds tags, variables, conditionals and schema validation, and renders to HTML or React from a parsed tree. It is a good, actively maintained choice for large documentation sites that need to keep content apart from code. For general Markdown rendering, Marked, markdown-it or the unified/remark stack fit better.

Best for: Teams building large, structured documentation sites who want validated, declarative components in Markdown without MDX's arbitrary JavaScript.

WebsiteGitHubnpm

Scores

Overall7.0

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

Markdoc is a strong, maintained, Stripe-backed choice for structured docs that need validation and content kept apart from code. For that kind of project it is a real alternative to MDX. For the category's general job of rendering Markdown or editing the tree, markdown-it, Marked and remark/unified are broader, better supported and far more widely used. Its small ecosystem and modest adoption keep it in the middle.

GPT-6.2 Sol: 7.9, likely 6.8 to 8.9

Markdoc is a strong choice for a new documentation site that needs reusable components, explicit schemas and validation during builds. Active releases and production integrations make that workflow a credible long-term choice. For general Markdown tree processing, remark is the stronger default because of its plugin ecosystem, and Markdoc's smaller indexed footprint limits confidence in how broadly its workflow fits.

  • markdoc.dev/docs/validation: Schema validation is the main advantage for shared authoring.
  • github.com/buttondown/docs: A production repository shows both the authoring workflow and its workarounds.
  • github.com/remarkjs/remark: The peer covers a broader range of general Markdown transformations.
  • github releasesLastYear; dependents repos; peers: Active releases and a small indexed footprint relative to general-purpose peers.
Needed by many4.4

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

Markdoc targets authoring for documentation and content sites, not general Markdown-to-HTML conversion. That is a clear niche inside a broad category. It works with React and plain HTML, so it is not tied to one framework.

  • passo.uno/markdoc-review: Says it is a framework aimed at technical teams building React docs
  • github description: Calls itself a Markdown-based authoring framework

GPT-6.2 Sol: 4.8, likely 3.6 to 6.0

Rendering Markdown serves a broad group of web developers. Markdoc's main appeal is more specific to teams that control their authoring format and need structured content or reusable components. HTML and React output widen its use, and the available survey evidence covers Markdown authoring more directly than demand for custom tags.

Helps a lot7.4

How well does it do the job for those who need it?

Claude Opus 5.5: 6.5, likely 5.5 to 7.5

Markdoc is well designed for its job. It has a typed AST, schema validation with precise error locations, a formatter, and HTML and React renderers, and it has no dependencies. It is built on markdown-it, but it lacks the large plugin ecosystem of remark or markdown-it, and users report gaps such as footnotes. Teams must also build their own rendering components.

GPT-6.2 Sol: 8.2, likely 7.1 to 9.2

Version 0.5.14 combines a traversable syntax tree, typed schemas, location-aware validation and HTML and React rendering. The documented pipeline and validation errors give developers and coding agents concrete checks for generated content. An independent test found a faster build than MDX on roughly 2,000 documents, though results may vary by workload. Multiline tags have reported parsing edge cases, and remark offers a broader plugin ecosystem for general tree processing.

Holds up over time7.5

Will it still be a good choice in two years?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

Stripe staff maintain it, and an automated release workflow published 11 releases in the last year, including 0.5.14 two days before the read date. Several Stripe engineers have published releases. It is still 0.x, but the 0.5 line has been incremental, without disruptive breaks. Stripe's backing and its own dependence on the tool make it a safe bet, but the contributor base is small.

  • github releasesLastYear: 11 releases; latest on 2026-11-19
  • github commitsLastYear: 54 commits, 25 contributors
  • github.com/markdoc/markdoc/releases: Releases come from several Stripe maintainers and GitHub Actions; the Next.js integration gained App Router support

GPT-6.2 Sol: 7.9, likely 6.7 to 9.0

The project recorded 54 commits and 11 GitHub releases in the past year, with several contributors shipping fixes and Stripe maintaining it for its own docs. The release history includes a higher JavaScript output target in a patch release, which can affect older build pipelines. A pending user fix shows that some parser issues can take months, and open and closed issue totals give little insight into typical response times.

Used widely4.2

How many use it, and is that growing?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

Downloads were about 3.6M per 4 weeks, against 0.62M a year earlier. That is a 5.75x ratio, above the 4.1 median, so it is gaining ground. Even so, it is one to two orders of magnitude below Marked, markdown-it or remark. With 819 dependent repos, against tens or hundreds of thousands for peers, it points to a few thousand direct users. Some installs come in through Astro and Keystatic.

  • npm downloadsLast4Weeks: 3,569,120, up from 620,422 a year ago
  • dependents: 819 repos and 55 packages, far below peers
  • github stars: 8,529 stars
  • docs.astro.build/en/guides/cms/keystatic: Astro's Keystatic setup installs the Markdoc integration

GPT-6.2 Sol: 4.3, likely 3.0 to 5.7

Four-week downloads grew 5.75-fold year over year, ahead of the catalog's 4.1-fold median. The index found 819 dependent repositories and 55 packages, far below MDX's 106,065 indexed repositories. Astro and Keystatic can bring in indirect installs, and limited index coverage puts a wide range around direct adoption.

  • npm downloadsLast4Weeks, downloadsSame4WeeksYearAgo, medianDownloadsRatio: 3.57 million downloads versus 620,422 a year earlier.
  • dependents repos, packages; peers MDX dependentRepos: The indexed footprint is much smaller than MDX's.
  • github stars; bluesky posts; hackerNews stories: 8,529 stars, three Bluesky links and two Hacker News stories without comments.
  • keystatic.com/docs/installation-astro: Shows how users can install Markdoc through an integration.
Vouched for7.1

Who stands behind it being good?

Claude Opus 5.5: 6.0, likely 5.0 to 7.0

Stripe runs its public docs on Markdoc. Astro ships an official integration, Keystatic and Redocly build on it, and Uniform reports good results. Independent reviews are thoughtful but mixed. It does not appear in developer surveys, and community discussion is thin.

GPT-6.2 Sol: 8.1, likely 6.9 to 9.2

Stripe uses Markdoc for its public docs, Astro maintains an official integration, and Keystatic supports it as an authoring format. Buttondown reports using it to carry custom components into a workflow that non-engineers can edit. These cases establish production use in Markdoc's niche, and the available benchmark and user reports cover a limited set of workloads.

Safe8.3

How safe is it to depend on?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

It has zero runtime dependencies, an MIT licence, and no OSV advisories. Releases are published through GitHub Actions from a company-maintained repo, and the latest release hardened HTML output. There is no Scorecard data, so its process checks are unverified, which keeps the range a little open.

  • npm dependencies: 0 dependencies
  • advisories: 0 advisories in total
  • scorecard: No Scorecard data
  • github.com/markdoc/markdoc/releases: 0.5.14 hardened tag and attribute serialization; published via github-actions

GPT-6.2 Sol: 8.5, likely 7.3 to 9.5

Markdoc has an MIT license, zero regular npm runtime dependencies and no recorded OSV advisories. Its release workflow requests npm provenance, Stripe provides a vulnerability reporting channel, and 0.5.14 hardened HTML serialization. The build bundles parser code, and the missing OpenSSF Scorecard leaves some repository controls unverified.

Good

  • Declarative tags, variables, functions and conditionals keep content as data, not code.
  • Schema-based validation catches bad tags and attributes before the content renders.
  • Stripe runs it in production for its public docs and maintains it, with steady releases in 2026.
  • Zero runtime dependencies, bundled types and no known advisories.

Bad

  • It is a framework, not a site tool: you must build the rendering layer and the components yourself.
  • Its plugin ecosystem is much smaller than remark/unified or markdown-it (no built-in footnotes, for example).
  • It is still on 0.x versions after four years, and the Astro integration is labelled experimental.
  • Its custom syntax adds a learning step for writers, and AI agents and editors support it less well than plain Markdown or MDX.

The numbers

npm downloads, 4 weeks
3.6M ×5.8 in a year
GitHub stars
8.5k
Commits, 12 months
54
npm version
0.5.14 Nov 2026
Versions, 12 months
10
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
None
Licence
MIT

Read on 21 November 2026 from GitHub (markdoc/markdoc), npm (@markdoc/markdoc), OSV and the OpenSSF Scorecard.

Markdown libraries

  1. 8.3Marked
  2. 7.9markdown-it
  3. 7.7react-markdown
  4. 7.7Streamdown
  5. 7.6remark
  6. 7.4MDX
  7. 7.1micromark
  8. 7.0Markdoc
  9. 4.1Showdown
Compare all 9 on six scores