@astrojs/markdoc@2.0.5
📦 astroView on GitHub →
🐛 2 fixes🔧 2 symbols
Summary
This patch release fixes issues related to custom transform functions in Markdoc, ensuring they are preserved even when custom render components are specified or when tag names use bracket notation.
🐛 Bug Fixes
- 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.
- 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.