Skip to content
Source
Sign inSign up
TanStack/markdown

Fix Markdown integration gaps within bundle budgets #17

Mergedtannerlinsleymerged 1 commit intomain fromtaren/release-markdown-integrationsmerged by tannerlinsley

Showing 37 changed files with 22 additions and 9 deletions (loading 34).

x
0 of 37 viewed, 37 left
13 additions and 0 deletions.changeset/portable-markdown-integrations.mdAdded
View file
@@ -0,0 +1,13 @@
+---
+'@tanstack/markdown': patch
+---
+​
+Forward raw code-fence metadata to `pre[data-meta]` and highlighter options in HTML, React, and Octane.
+​
+Add portable `InlineComponentNode` output 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; returning `null` removes 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 `InlineNode` switches should handle the new `inlineComponent` variant.
4 additions and 4 deletionsREADME.mdModified
View file
@@ -20,10 +20,10 @@
​
A tiny, fast, deterministic Markdown parser and renderer for blogs and documentation.
​
-- 4.9 KB gzip parser
-- 6.7 KB gzip HTML renderer
-- 6.6 KB gzip React adapter
-- 6.6 KB gzip Octane adapter
+- 5.0 KB gzip parser