Markdoc

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Teams building documentation sites can now adopt the same Markdown framework Stripe uses internally, avoiding custom tooling as their docs scale beyond plain Markdown.

Read this as

Stripe has open sourced Markdoc, the tool behind its own documentation site. It lets writers keep using Markdown, the simple formatting language used everywhere online, while adding custom components and logic when pages need them. It is aimed at companies whose documentation has grown to thousands of pages, like Stripe's API guides. People with small personal blogs probably do not need it.

Stripe has released Markdoc under an MIT license, meaning no cost and no restrictions on commercial use. It powers stripe.com/docs, one of the largest documentation sites on the internet, which reduces adoption risk since the architecture is proven at scale. Teams with simple static docs gain little; the tool matters most for engineering teams maintaining large, growing developer-facing documentation.

Markdoc is a JavaScript library, installed via npm as @markdoc/markdoc, that parses Markdown into an abstract syntax tree, applies transformations, and renders the result, typically to React via Markdoc.renderers.react. Custom syntax like {% image src="/logo.svg" /%} embeds components without JSX. TypeScript is first-class, requiring moduleResolution 'node' and esModuleInterop. The article gives no performance benchmarks; rendering to non-React output is possible but undocumented in detail.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Markdoc Stripe React Markdown TypeScript GitHub

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading