@astrojs/markdoc@2.0.5
Fixed
- Custom transform functions are no longer dropped when a tag or node also specifies a custom render component; user-written transforms are always preserved while only Markdoc's built-in transforms are removed
- Custom transform functions are no longer incorrectly dropped for tags and nodes whose names require bracket access like side-note; the check now recognizes bracket notation, optional chaining, and whitespace in addition to dot notation
Patch Changes
-
#17460
3b93a1aThanks @astrobot-houston! - Fixes customtransformfunctions being dropped when a tag or node also specifies a customrendercomponent. User-written transforms are now always preserved; only Markdoc's built-in transforms are removed so the custom component wins. -
#17191
fc3fb2bThanks @eldardada! - Fixes customtransformfunctions 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 customrendercomponent now recognizes bracket notation, optional chaining and whitespace, not only dot notation.