[[email protected]] top level custom markdoc tags are not rendered when rootHtml is null #12964
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
pkg: markdoc
Related to the `@astrojs/markdoc` package (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
This issue happens after upgrading
@astrojs/markdoc
to0.12.5
.When we set the rootHtml to null like in documentation custom markdoc tags are not rendered when encountered in top level.
If you remove
nodes.document
setting or wrap the tag with another element it works. I have included both cases in reproduction.Rendered output example:
What's the expected result?
It should render correctly. No problems with
0.12.4
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-kq641b?file=src%2Fcontent%2Fdocs%2Fintro.mdoc
Participation
The text was updated successfully, but these errors were encountered: