New npm package for automatic recovery of broken streaming markdown
Streaming broke your Markdown. This npm package fixes it in production.

Why it matters
As AI models stream responses token-by-token, incomplete Markdown syntax breaks rendering. Remend automatically detects and completes unterminated blocks, ensuring clean output mid-stream—critical for any product built on LLM APIs.
The key facts
10 to knowRemend is a standalone npm package for automatic Markdown recovery during streaming
Previously built into Streamdown, now available as a reusable library
Solves unclosed fences, incomplete bold/italic markers, unterminated links, and nested brackets
Works as a pre-processor with any Markdown renderer
Battle-tested in production AI applications
Handles edge cases like LaTeX blocks with underscores and product codes with special characters
Previously part of Vercel's Streamdown product, now open for any application
Handles unterminated blocks: unclosed fences, incomplete bold/italic, broken links, list formatting
Includes edge-case handling for LaTeX, product codes, nested brackets, and variable names with special characters
Published Dec 3, 2025 via Vercel changelog
Go to the source
Vercel Blogvercel.com
Publisher excerpt: is a new standalone package that brings intelligent incomplete Markdown handling to any application.Remend Previously part of 's Markdown termination logic, Remend is now a standalone library () you can use in any application.Streamdownnpm i remend AI models stream Markdown token-by-token, which…