Markdown for technical content

TanStackMarkdown

alpha

Turn Markdown into a small, predictable document model.

Parse once, keep the AST serializable, and render matching HTML or React without pulling a content-processing framework into every page.

2.3 ThousandTotal Downloads156Weekly Downloads2GitHub Stars
Read the docs
4.6 KB
gzip parser
0
runtime dependencies
1 AST
HTML + React parity
article.mddeterministic output
# Ship the docs

One source, two renderers.

- serializable AST
- safe URLs
- React or HTML

```tsx
<Markdown>{source}</Markdown>
```
root
heading · depth 1
“Ship the docs”
paragraph
text · 26 chars
list · unordered
3 listItem nodes
code · tsx
safe: true
parse → extend → render
Why Markdown

Small enough to understand. Specific enough to trust.

A document model you can inspect.

The parser produces a serializable AST instead of hiding content behind an opaque render pipeline.

Safe defaults at the boundary.

Raw HTML and executable URLs are handled deliberately, with malformed input tested as a normal case.

HTML and React stay in agreement.

Render the same syntax profile on the server or in components without maintaining two interpretations.

Docs features are opt-in.

Add callouts, tabs, headings, comments, and framework-aware content through focused extensions.

  1. 01 / Source

    Controlled Markdown for a blog, docs page, or changelog.

  2. 02 / Parse

    A deterministic, serializable tree with stable node shapes.

  3. 03 / Extend

    Only the docs conventions the product actually needs.

  4. 04 / Render

    Matching HTML or React output with safe defaults.

Content pipeline

Every transformation stays visible.

A short pipeline is easier to reason about, easier to test, and easier to run identically during SSR and in the browser.

Built to compose

Bring your own highlighter. Keep the boundary explicit.

TanStack Markdown accepts external syntax highlighting instead of bundling a grammar engine. TanStack Highlight is the small, synchronous companion built for that job.

Companion library
TanStackHighlight
Explore Highlight
Open source ecosystem

Tiny infrastructure still deserves serious maintenance.

Partners

Gold
Lovable
Cloudflare
Netlify
Railway
CodeRabbit
Silver
SerpApi
WorkOS
Clerk
AG Grid
OpenRouter
Bronze
Prisma
Unkey
Electric
Sentry
Markdown You?
We're looking for TanStack Markdown Partners to join our mission! Partner with us to push the boundaries of TanStack Markdown and build amazing things together.
Let's chat

GitHub Sponsors

Wow, you've come a long way!
Only one thing left to do...