Patch Changes
-
f37686a: Speed up plain fenced-code rendering with the React streaming extension by retaining completed code text nodes across updates. Reduce parser overhead and shrink every affected public bundle without adding runtime dependencies.
Add unfinished-fence benchmarks at 4, 16, and 64 KiB, browser comparisons with Streamdown and streaming-markdown, and regression coverage for streamed text, custom code components, and hydration.
-
eb6ef72: Forward raw code-fence metadata to
pre[data-meta]and highlighter options in HTML, React, and Octane.Add portable
InlineComponentNodeoutput for custom inline extensions, using the existing component maps without requiring raw HTML or a bundled math engine.Add
urlTransform(url, kind, defaultUrl)for application-controlled link and image policies. Default URL screening is unchanged; returningnullremoves a link or image while keeping its label content.Use single-pass attribute escaping, expand renderer and security regression coverage, and update documentation and shipped skills. The combined renderer increase is 74-78 gzip bytes, with no new runtime dependencies.
Code fences with metadata now include an additional escaped HTML attribute. Consumers with exhaustive
InlineNodeswitches should handle the newinlineComponentvariant.