@astrojs/markdoc@2.0.5
boratanrikulu/gecit@astrojs/markdoc@2.0.5Jul 27, 2026by astrobot-houston
AI Summary
This release fixes logic issues where custom transforms were incorrectly removed or not recognized for specific node types.
Key Highlights
- Fixes custom `transform` functions being dropped when a tag also specifies a custom `render` component.
- Fixes transforms for bracket notation tags (e.g., `side-note`) to correctly recognize custom components.
Full Release Notes
### Patch Changes - [#17460](https://github.com/withastro/astro/pull/17460) [`3b93a1a`](https://github.com/withastro/astro/commit/3b93a1a1cce669b71729d2b946fa2d41dae79ad6) Thanks [@astrobot-houston](https://github.com/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](https://github.com/withastro/astro/pull/17191) [`fc3fb2b`](https://github.com/withastro/astro/commit/fc3fb2bcfdd3223a6a9acfcb3b09efaa9d4a28e8) Thanks [@eldardada](https://github.com/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.