# markdoc/markdoc

A powerful, flexible, Markdown-based authoring framework.

Repository: https://github.com/markdoc/markdoc
Canonical: https://ross.abutalabs.com/products/markdoc
Homepage: https://markdoc.dev
Language: TypeScript
License: MIT
License Family: permissive
Topics: authoring, documentation, markdoc, markdown, react, toolchain
Last push: 2026-08-04T13:30:39+00:00

## Health v2 (maintenance only)
Score: 97/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 96, release rhythm 96, longevity 100
- inputs: {"age_days": 1577, "days_push": 29, "days_rel": 29, "gap_med": 19, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8414, forks 250 (observed 2026-08-28T04:10:20.997023+00:00)

## What it is
Markdoc is a Markdown-based authoring framework and toolchain created by Stripe, extending CommonMark with custom tags, annotations, and variables. It parses documents into an AST, transforms them into a renderable tree, and renders to HTML or React components for building documentation sites and interactive content experiences.

## Use cases
- build a custom documentation site with markdown
- render markdown with custom React components
- add conditionals and variables to markdown content
- validate markdown content in CI
- create interactive docs like Stripe's documentation
- convert markdown to HTML or React trees

## When to choose
- you need structured, interactive documentation beyond plain Markdown
- you want to embed React components in Markdown content
- you need programmatic validation and static analysis of content
- you want a declarative authoring format with full control over rendering

## When to avoid
- you just need simple Markdown-to-HTML conversion
- you want a batteries-included static site generator with zero setup
- your project doesn't use JavaScript or React

## Facets
- artifact type: library
- maturity: stable
- function: parser, templating, static-site-generator, documentation, markdown
- domain: documentation, web-development, frontend, developer-tools
- platform: cross-platform
- tags: markdown-framework, authoring, react-renderer, content-publishing, stripe, nodejs, web-server

## Member repositories
- markdoc/markdoc (main) score 97

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:20.997023+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:27:17.774084+00:00, confidence not recorded.
  - readme: https://github.com/markdoc/markdoc (fetched 2026-08-28T04:10:20.997023+00:00, sha bc23bfd6bf2c)
  - homepage: https://markdoc.dev (fetched 2026-08-29T08:27:36.402798+00:00, sha b972c131e70f)
  - site_page: https://markdoc.dev/docs/tags (fetched 2026-08-29T08:27:36.420935+00:00, sha 98c9ba63b06a)
  - site_page: https://markdoc.dev/docs/nodes (fetched 2026-08-29T08:27:36.423704+00:00, sha b681c736fa93)
  - site_page: https://markdoc.dev/docs/render (fetched 2026-08-29T08:27:36.425839+00:00, sha 50b7bf3d13b8)
  - site_page: https://markdoc.dev/docs/getting-started (fetched 2026-08-29T08:27:36.413965+00:00, sha df89e56b7f34)
  - site_page: https://markdoc.dev/docs/overview (fetched 2026-08-29T08:27:36.416433+00:00, sha 831ae4154af0)
  - site_page: https://markdoc.dev/docs/syntax (fetched 2026-08-29T08:27:36.418877+00:00, sha 84b85c539b72)
  - site_page: https://markdoc.dev/docs/validation (fetched 2026-08-29T08:27:36.428072+00:00, sha 6e0dcc7cde68)
- Data as of 2026-08-30T08:39:29.467469+00:00.
