Closed theRealProHacker closed 6 months ago
Auto-closing tags are not supported in mdx. You can go to mdxjs.com/playground and test it out, you get the same error you're reporting here.
Sorry, but this doesn't seem satisfactory to me. I explicitly said that auto-closing would be cool, but the minimum is to get a good error. That is the real issue, not that it doesn't auto-close, but I can also open an issue with MDX if that is necessary
I filed an issue with MDX as this is clearly an issue with MDX: https://github.com/mdx-js/mdx/issues/2451
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I have an Astro component
Abbr
which I use in an MDX file, I use the Astro component as explained in https://docs.astro.build/en/guides/markdown-content/#using-components-in-mdx:The resulting error stack trace is:
What's the expected result?
The expected result should be that the
<br>
is auto-closed. Another acceptable but not desired result is an error that tells me that the<br>
is not closed.There are several hints. For example, it is clear that
</Abbr>
is a closing tag and so the error simply logically makes no sense: A closing tag can impossibly be missing a closing tag.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-ojtesw?file=src%2Fpages%2Findex.mdx
Participation