Streamdown: a React library that replaces react-markdown with proper streaming support for AI applications.
Key features:
🔄 Handles incomplete Markdown blocks during streaming
🎨 Styles unterminated bold, italic, and code elements properly
📊 Full GitHub Flavored Markdown support with tables and task lists
🔢 Built-in LaTeX math rendering with KaTeX
🎯 Syntax highlighting with Shiki and copy buttons
🛡️ Security hardening for untrusted content
⚡ Memoized rendering for better performance
Works as a drop-in replacement with the same API as react-markdown but actually handles streaming content properly.
The unterminated block parsing is particularly useful for AI chat applications where content arrives progressively.
Top comments (0)