Skip to content

Comments

[pull] main from withastro:main#378

Merged
pull[bot] merged 1 commit intocode:mainfrom
withastro:main
Feb 14, 2026
Merged

[pull] main from withastro:main#378
pull[bot] merged 1 commit intocode:mainfrom
withastro:main

Conversation

@pull
Copy link

@pull pull bot commented Feb 14, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

* fix(markdoc): sync custom attributes between tags and nodes with shared names

In Markdoc, `table` exists as both a tag (`{% table %}`) and a node
(the inner table structure). When users configure custom attributes on
`nodes.table` or `tags.table`, the AST propagates those attributes to
both the tag and node, but validation only checks the schema for each
type independently. This caused "Invalid attribute" errors when
attributes were declared on only one side.

Add `syncTagNodeAttributes()` to automatically merge attribute
declarations between tags and nodes that share the same name after
config setup, so users can define attributes on either side.

Fixes #14220

* chore: clarify why explicit types are needed on builtinTags/builtinNodes
@pull pull bot locked and limited conversation to collaborators Feb 14, 2026
@pull pull bot added the ⤵️ pull label Feb 14, 2026
@pull pull bot merged commit 6e8da44 into code:main Feb 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant