🐞 Patch Changes
- Updated dependencies [
f8e9458]:- @astrojs/internal-helpers@0.11.0
f8e9458]:
05763a0]:
8c193f6]:
c895b12]:
#17460 3b93a1a Thanks @astrobot-houston! - Fixes custom transform functions being dropped when a tag or node also specifies a custom render component. User-written transforms are now always preserved; only Markdoc’s built-in transforms are removed so the custom component wins.
#17191 fc3fb2b Thanks @eldardada! - Fixes custom transform functions being incorrectly dropped for tags and nodes whose names require bracket access (e.g. side-note). The check that detects whether a transform respects a custom render component now recognizes bracket notation, optional chaining and whitespace, not only dot notation.
eb6f97e]:
02b73b0 Thanks @ematipico! - Fixes an issue where the peerDependencies field used incorrect dependencies.973ea49 Thanks @astrobot-houston! - Fixes a crash when rendering shiki-highlighted code blocks inside list items#16848 f732f3c Thanks @Princesseuh! - Removes @astrojs/markdown-remark from @astrojs/markdoc’s dependencies in favour of Astro’s internal markdown utilities now that Astro’s Markdown support is processor agnostic.
Updated dependencies [f732f3c]:
10a1a5a]:
#15864 d3c7de9 Thanks @florian-lefebvre! - Removes temporary support for Node >=20.19.1 because Stackblitz now uses Node 22 by default
Updated dependencies [d3c7de9]:
6f8f0bc Thanks @ematipico! - Updates the Astro peerDependencies#astro to be 6.0.0.c2cd371]:
#14494 727b0a2 Thanks @florian-lefebvre! - Updates Markdown heading ID generation - (v6 upgrade guidance)
#15345 840fbf9 Thanks @matthewp! - Uses Astro’s new emitClientAsset API for image emission in content collections
#15097 be1b9bf Thanks @matthewp! - Updates internal image processing to be compatible with Astro 6. This change is internal-only and does not affect the public API.
The integration now uses Astro’s new emitImageMetadata() function instead of the removed emitESMImage() function for processing images referenced in Markdoc content during build time. This ensures continued compatibility with Astro’s asset processing pipeline while maintaining the same behavior for users.
#14427 e131261 Thanks @florian-lefebvre! - Increases minimum Node.js version to 22.12.0 - (v6 upgrade guidance)
#14445 ecb0b98 Thanks @florian-lefebvre! - Astro v6.0 upgrades to Vite v7.0 as the development server and production bundler - (v6 upgrade guidance)
#15184 f47c071 Thanks @ematipico! - Fixes an issue where the package wasn’t correctly published
#15457 6e8da44 Thanks @AhmadYasser1! - Fixes custom attributes on Markdoc’s built-in {% table %} tag causing “Invalid attribute” validation errors.
In Markdoc, table exists as both a tag ({% table %}) and a node (the inner table structure). When users defined custom attributes on either nodes.table or tags.table, the attributes weren’t synced to the counterpart, causing validation to fail on whichever side was missing the declaration.
The fix automatically syncs custom attribute declarations between tags and nodes that share the same name, so users can define attributes on either side and have them work correctly.
#15264 11efb05 Thanks @florian-lefebvre! - Lower the Node version requirement to allow running on Stackblitz until it supports v22
#15335 75931c2 Thanks @matthewp! - Fixes an issue where spreading a built-in Markdoc node config (e.g., ...Markdoc.nodes.fence) and specifying a custom render component would not work because the built-in transform() function was overriding the custom component. Now, render wins over transform when both are specified.
Updated dependencies [bbb5811, bbb5811, 4ebc1e3, cb99214, 80f0225, 727b0a2, 11efb05, 4e7f3e8, a164c77, 1fa4177, 7c55f80, cf6ea6b, e131261, 6f19ecc, f94d3c5, a18d727, 240c317, 745e632]: