A drop-in replacement for react-markdown, designed for AI-powered streaming.
or with AI Elements: npx ai-elements@latest add message
Powering AI experiences for
Streamdown comes with built-in Tailwind classes for common Markdown components — headings, lists, code blocks, and more.
Show users that content is still being generated with built-in caret styles — block or circle.
Streamdown supports GitHub Flavored Markdown (GFM) out of the box, so you get things like task lists, tables, and more.
Built-in support for Chinese, Japanese, and Korean languages ensures emphasis markers work correctly with ideographic punctuation—critical for AI-generated content.
Streamdown uses Shiki to highlight code blocks, and comes with copy and download buttons in the header.
Streamdown supports LaTeX math expressions through remark-math and KaTeX, enabling beautiful mathematical notation in your markdown.
Streamdown comes with built-in support for parsing unterminated Markdown blocks (# headings, `inline code`, **bold**, _italic_, [links]() and more), which makes streaming Markdown content much prettier.
Streamdown ensures that untrusted markdown does not contain images from and links to unexpected origins which might have been subject to prompt injection.
Try Streamdown today and take your AI-powered streaming to the next level.