You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---lang: "en"
---
import Abbr from '../../components/Abbr.astro'<br><Abbr e="Natural Language Processing">NLP</Abbr>
The resulting error stack trace is:
MDXError: Expected a closing tag for `</Abbr>` (26:1-26:5)
at TransformContext.transform (file:///C:/Users/Rashid/Desktop/Programmieren/personal-website/node_modules/@astrojs/mdx/dist/index.js:92:27)
at async Object.transform (file:///C:/Users/Rashid/Desktop/Programmieren/personal-website/node_modules/astro/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:64063:30)
at async loadAndTransform (file:///C:/Users/Rashid/Desktop/Programmieren/personal-website/node_modules/astro/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:49741:29)
at async instantiateModule (file:///C:/Users/Rashid/Desktop/Programmieren/personal-website/node_modules/astro/node_modules/vite/dist/node/chunks/dep-9A4-l-43.js:50759:10)
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.
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
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
Tasks
The text was updated successfully, but these errors were encountered: