Pay for registered languages.
Import TSX, CSS, HTML, or the exact grammar set your docs need instead of an all-language bundle.
Highlight code without shipping an editor engine.
Register only the languages you use, run synchronously on either side of hydration, and emit one compact class-based HTML tree for every theme.
1.7 ThousandTotal Downloads155Weekly Downloads1GitHub StarsImport TSX, CSS, HTML, or the exact grammar set your docs need instead of an all-language bundle.
The same registration produces identical markup during SSR and hydration with no initialization phase.
Stable semantic token classes let light and dark themes switch without highlighting the source twice.
Titles, line numbers, highlights, insertions, deletions, focus, warnings, and exact ranges are built in.
Import only the language definitions used by the site.
Tokenize synchronously with deterministic output.
Add titles, line numbers, and exact line or range states.
Apply light and dark palettes to one semantic HTML tree.
A short pipeline is easier to reason about, easier to test, and easier to run identically during SSR and in the browser.
Use the direct API with TanStack Markdown, or plug the same highlighter into remark and rehype. Adapters take an explicit highlighter so they never smuggle in every language.