TanStack

The durable layer

The AST is the product.

Parsing does not trap content inside a renderer. Edit the source and inspect the serializable tree, deterministic HTML, or React output.

Accumulated AI responses

Stream the text. Keep the parser stateless.

Append each chunk and pass the complete string through Markdown. The optional streaming profile reparses synchronously, with no incremental state to coordinate or recover.

A deliberate profile

It does less Markdown on purpose.

Technical docs need a known vocabulary, not an open-ended compiler platform. New syntax has to justify its bytes, ambiguity, and maintenance cost.

Boundary behavior

Unsafe surprises are opt-in.

Raw HTML starts escaped, executable URL schemes are stripped, and text, attributes, and code are encoded at render time.

Size ledger

A parser should not outweigh the page.

Split entry points keep the parser, renderers, framework adapters, and docs extensions independent. Import only the layer the page needs.

TanStack parser4.9 KB

marked12.5 KB

unified stack36.8 KB

markdown-it52.7 KB

6.7 KB

HTML renderer

6.7 KB

React adapter

6.7 KB

Octane adapter

2.4 KB

docs preset

Read the original on tanstack.com ↗