A
argbe.tech - news1min read
Bun v1.3.8 adds a built-in Markdown API and LLM-friendly build metafiles
Bun v1.3.8 ships a native Markdown parser plus a new Markdown metafile output for bun build, alongside targeted fixes for Node compatibility, gRPC streaming, and Windows installs.
Bun v1.3.8 expands Bun’s runtime and bundler tooling with new Markdown and analysis capabilities.
- A new
Bun.markdownAPI uses a fast, CommonMark-compliant parser written in Zig (a port ofmd4c). - Markdown can be rendered three ways: HTML output, callback-driven rendering (including stripping or custom formatting), and React elements; React output targets React 19 by default with an option for React 18 compatibility.
- GitHub Flavored Markdown extensions are enabled by default, including tables, strikethrough, task lists, and permissive autolinks, with optional features like heading IDs, wiki links, and LaTeX math.
bun buildadds--metafile-mdto emit a Markdown view of the module graph, designed to paste into LLM chats, with sections for module counts/sizes, largest inputs, dependency chains, and grep-friendly markers.- Compatibility and stability fixes include gRPC/HTTP2 streaming state handling,
node:vm+ async hooks crashes, heap snapshot crash cases, and a Windowsnpm i -g bunwrapper issue.