Today, we're releasing a major update to Streamdown, our drop-in replacement for react-markdown, designed for AI-powered streaming.
Link to heading Streamdown Plugins
The most requested feature since launch has been to reduce the bundle size. Streamdown v2 now ships with a bundle size much smaller than the previous version and uses a plugin-based architecture.
import { Streamdown } from 'streamdown' ;
import { code } from '@streamdown/code' ;
import { mermaid } from '@streamdown/mermaid' ;
import { math } from '@streamdown/math' ;
import { cjk } from '@streamdown/cjk' ;
// Import KaTeX styles for math rendering
import 'katex/dist/katex.min.css' ;
export default function Page ( ) {
const markdown = ` # Hello, world ` ;
return (
< Streamdown plugins = { { code , mermaid , math , cjk } } >
{ markdown }
</ Streamdown >
) ;
}
Link to heading Carets
Streamdown now includes built-in caret (cursor) indicators that display at the end of streaming content.…