ToolsThe story, in brief

New npm package for automatic recovery of broken streaming markdown

Streaming broke your Markdown. This npm package fixes it in production.

Paper-cut illustration of a coral software window opening into a three-dimensional drafting space.
New tools for building and creating with AI.AI illustration by KeyNews
The KeyNews take

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 know
  1. Remend is a standalone npm package for automatic Markdown recovery during streaming

  2. Previously built into Streamdown, now available as a reusable library

  3. Solves unclosed fences, incomplete bold/italic markers, unterminated links, and nested brackets

  4. Works as a pre-processor with any Markdown renderer

  5. Battle-tested in production AI applications

  6. Handles edge cases like LaTeX blocks with underscores and product codes with special characters

  7. Previously part of Vercel's Streamdown product, now open for any application

  8. Handles unterminated blocks: unclosed fences, incomplete bold/italic, broken links, list formatting

  9. Includes edge-case handling for LaTeX, product codes, nested brackets, and variable names with special characters

  10. 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…
Read original report
Back to today's editionMore tools news

Keep reading

Related stories

More from Tools