Markdoc shiki code does not render inside an if
tag
#11656
Labels
- P3: minor bug
An edge case that only affects very specific usage (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
Using shiki code highlighting inside a markdoc
if
tag results in nothing being rendered (including other content inside theif
tag).What's the expected result?
In this
.mdoc
file:I expect to see
Inside truthy
and the code block rendered using shiki highlighting, however all the contents inside theif
are not shown at all: https://stackblitz.com/edit/github-jw5bfh?file=src%2Fcontent%2Fdocs%2Fintro.mdocI've replicated this with
shiki
commented out: https://stackblitz.com/edit/github-jw5bfh-xsgvdw?file=src%2Fcontent%2Fdocs%2Fintro.mdoc,markdoc.config.mjs - here the text and code are shown.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-jw5bfh?file=src%2Fcontent%2Fdocs%2Fintro.mdoc
Participation
The text was updated successfully, but these errors were encountered: