Introducing TanStack Markdown and TanStack Highlight
TanStack is releasing alpha versions of two lightweight libraries: TanStack Markdown and TanStack Highlight. These were built to replace a bloated Markdown and syntax-highlighting pipeline on tanstack.com that was transferring over 1.1 MiB of script per docs page, with 358 KiB tied to Shiki alone. TanStack Markdown parses content into a serializable document tree (4.9 KB gzipped parser, zero runtime dependencies) supporting headings, tables, footnotes, fenced code, and streaming AI output. TanStack Highlight provides synchronous, deterministic syntax highlighting for 25 languages in about 8 KB total, emitting semantic CSS classes instead of inline styles for easy theming. The two libraries are intentionally decoupled, allowing independent use. Together they reduced the content rendering footprint to ~27 KiB transferred, enabling removal of the React Server Components pipeline previously used to hide the dependency cost.