Closed
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Affected packages and versions
latest version
Link to runnable example
No response
Steps to reproduce
This code
<A>
<B></B>
produces this error
1:1: Expected a closing tag for `</B>` (1:1-1:4)
Which seems to come from here:
mdast-util-mdx-jsx/lib/index.js
Lines 424 to 471 in bf60d93
Expected behavior
I would have expected an error that asks me to close the <A>
tag/element.
Actual behavior
The error asks me to close the </B>
tag, which is itself a closing tag
Affected runtime and version
node@20.0
Affected package manager and version
No response
Affected OS and version
No response
Build and bundle tools
No response