Menu

Post image 1
Post image 2
Post image 3
1 / 3
0

Streamdown v2: Smaller bundle size and new Remend options - Vercel

Vercel News·Hayden Bleasel·4 days ago
#C0ka2a9L
Reading 0:00
15s threshold

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.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More