A
argbe.tech - news
1min 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.markdown API uses a fast, CommonMark-compliant parser written in Zig (a port of md4c).
  • 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 build adds --metafile-md to 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 Windows npm i -g bun wrapper issue.