惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
博客园 - Franky
J
Java Code Geeks
V
Visual Studio Blog
G
Google Developers Blog
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
The GitHub Blog
The GitHub Blog
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
V
V2EX
博客园 - 【当耐特】
IT之家
IT之家
I
InfoQ
U
Unit 42
C
Check Point Blog
Martin Fowler
Martin Fowler

Streamdown Documentation

Configuration FAQ Getting Started Security Animation Carets Code Blocks Components GitHub Flavored Markdown Interactivity Internationalization Link Safety Memoization Migrate from react-markdown Styling Unterminated Block Parsing Typography Usage @streamdown/cjk @streamdown/code Built-in Plugins @streamdown/math @streamdown/mermaid Custom renderers
Introduction
Vercel · 2026-06-02 · via Streamdown Documentation

A drop-in replacement for react-markdown, designed for AI-powered streaming.

Streamdown is a React component library that makes rendering streaming Markdown content seamless and beautiful. Built specifically for AI-powered applications, it handles the unique challenges that arise when Markdown is tokenized and streamed in real-time.

When you stream Markdown content from AI models, new challenges emerge that traditional Markdown renderers weren't designed to handle:

  • Incomplete syntax - Bold text that hasn't been closed yet: **This is bol
  • Partial code blocks - Code blocks missing their closing backticks
  • Unterminated links - Links without closing brackets: [Click here
  • Progressive rendering - Content that updates token-by-token

Traditional Markdown renderers like react-markdown will either render these incomplete elements incorrectly or not at all, creating a jarring user experience.

Streamdown intelligently handles incomplete Markdown by:

  1. Parsing incomplete blocks - Automatically detects and completes unterminated Markdown syntax
  2. Progressive formatting - Applies styling to partial content as it streams in
  3. Seamless transitions - Smoothly updates from incomplete to complete states
  4. Zero configuration - Works out of the box with sensible defaults