We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
latest
https://mdxjs.com/playground/
Linked issue in astro: withastro/astro#10318
This code
<A> <B></B>
results in this error message:
1:1: Expected a closing tag for `</B>` (1:1-1:4)
I would have expected an error that asks me to close the <A> tag/element.
<A>
The error asks me to close the </B> tag, which is itself a closing tag
</B>
No response
The text was updated successfully, but these errors were encountered:
Welcome @theRealProHacker! 👋 Sorry you ran into some confusion.
The error is not raised in this repo, it comes from https://github.com/syntax-tree/mdast-util-mdx-jsx/blob/bf60d93bdffde6e4d3359324170d438e5ee62a63/lib/index.js#L424-L471 Contributions to improve error reporting are welcome!
Feel free to reach out with questions on how to contribute.
Sorry, something went wrong.
@ChristianMurphy Hi, the issue got fixed in syntax-tree/mdast-util-mdx-jsx#12 and put in a new release (https://github.com/syntax-tree/mdast-util-mdx-jsx/releases/tag/3.1.1). I don't know where exactly, but maybe the dependency should be bumped up in the playground etc.
Thanks @theRealProHacker, it's already fixed in the playground and allowed by released version ranges.
No branches or pull requests
Initial checklist
Affected packages and versions
latest
Link to runnable example
https://mdxjs.com/playground/
Steps to reproduce
Linked issue in astro: withastro/astro#10318
This code
results in this error message:
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 tagRuntime
No response
Package manager
No response
OS
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: