Streamdown 1.6 is now available to run faster and ship less code
Vercel releases Streamdown 1.6 with faster performance, smaller bundle sizes, lazy-loaded components, a rebuilt code highlighting system, and a new static rendering mode for non-streaming use cases.
Vercel Streamdown 1.6 is now available with major improvements to performance, bundle size, and the authoring experience. Streamdown now runs faster and ships less code thanks to memoization, LRU caching, optimized string operations, and the removal of regexes. Several product enhancements include: Update to Vercel Streamdown 1.6 today with or read more about Streamdown .npm i streamdown@latesthere Read more with and , only loading when used.Code Blocks, Mermaid, and Math components are now lazy-loadedReact.lazy()Suspense with a new tokenization approach that’s simpler, more efficient, and includes line numbers.The code highlighting system has been rebuilt , giving Streamdown a lighter core and more room for future optimizations.A custom markdown renderer replaces React Markdown ideal for blogs and other static use cases as it reduces streaming overhead.Static Mode adds support for rendering markdown without streaming, for handling parsing issues.Mermaid blocks now support custom error components as SVG, PNG, or source code, and the fullscreen view includes zoom and pan controls (thanks to zhdzb).Diagrams can be exported