react-markdown engine and adds support for math expressions, Mermaid diagrams, and theme-accurate syntax highlighting via Shiki.
Markdown
Standard Markdown renders in session messages: headings, bold, italic, tables, lists, links, blockquotes, and inline code. Agents can return any valid Markdown and the session view formats it automatically.Math expressions
Write math in standard LaTeX notation using KaTeX delimiters. The session interface renders it with KaTeX. Wrap inline expressions in single dollar signs ($...$):
$$...$$):
Diagrams
The session interface renders Mermaid diagrams inline via@streamdown/mermaid. Use a fenced code block with the mermaid language tag:
Code blocks
Code blocks use Shiki for syntax highlighting. Shiki applies theme-accurate colors for over 100 languages. Specify the language after the opening fence:typescript, javascript, python, bash, json, yaml, sql, and many others.