# Markdoc: 7.0 out of 10

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

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.

## Scores

- **Overall: 7.0** (likely 5.9 to 8.0)
  - Claude Opus 5.5 (6.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): 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.
- **Needed by many: 4.4** (likely 3.3 to 5.5)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (4.8): 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 lot: 7.4** (likely 6.3 to 8.4)
  - Claude Opus 5.5 (6.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): 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 time: 7.5** (likely 6.4 to 8.5)
  - Claude Opus 5.5 (7.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.
  - GPT-6.2 Sol (7.9): 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 widely: 4.2** (likely 3.0 to 5.4)
  - Claude Opus 5.5 (4.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.
  - GPT-6.2 Sol (4.3): 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.
- **Vouched for: 7.1** (likely 6.0 to 8.1)
  - Claude Opus 5.5 (6.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): 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.
- **Safe: 8.3** (likely 7.2 to 9.3)
  - Claude Opus 5.5 (8.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.
  - GPT-6.2 Sol (8.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

- Downloads, 4 weeks: 3.6M
- In a year: ×5.8
- GitHub stars: 8.5k
- Commits, 12 months: 54
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/markdoc/markdoc
- npm: https://www.npmjs.com/package/@markdoc/markdoc

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.
