Skip to main content

Rich text formatting

📄️ Code-block highlighting

Fenced code blocks are syntax-highlighted natively via tree-sitter. Highlighting is foreground-only - it recolors tokens and never changes text metrics, so a code block's measured height always matches its drawn height. In the React Native package it is on by default on iOS and Android with a curated set of languages, and can be trimmed or disabled to reduce binary size. The standalone iOS SDK ships it as an optional product you enable per view, and the standalone Android SDK as an optional artifact you enable with a plugin - see iOS and Android SDKs.