Vercel ChangelogDec 3, 2025, 1:00 PMHayden Bleaselimportant 75

Vercel 推出全新 npm 套件:自動修復與補全損壞的串流 Markdown (Streaming Markdown)

Original: New npm package for automatic recovery of broken streaming markdown

When developing AI chat applications based on large language models (LLMs), developers frequently encounter the problem of "streaming…

Vercel 發表全新 npm 套件,專為解決 AI 串流(Streaming)時 Markdown 語法不完整導致的渲染問題。當 LLM 輸出尚未結束時,該套件能即時補全未閉合的程式碼區塊、粗體或表格等標籤,避免前端畫面閃爍或排版崩潰。這對於開發 AI 聊天介面的前端工程師來說,是提升使用者體驗的實用工具。

When developing AI chat applications based on large language models (LLMs), developers frequently encounter the problem of "streaming Markdown rendering crashes." While a model is streaming content in real time, Markdown syntax (such as code blocks ```, bold **, tables, or links) remains in an unclosed state before transmission is complete. This causes frontend Markdown renderers (like react-markdown) to fail to parse correctly, resulting in screen flickering, layout chaos, and even outright errors.

Full summary

Free shows the 3-line summary; Pro unlocks the full deep summary (~300 words) so you never have to click through.

See Pro plans →

Want the original English / full article?

Read on Vercel Changelog →

Summaries are AI-generated; the original article is authoritative.