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
Please see the guide on MDX syntax https://mdxjs.com/docs/what-is-mdx/#jsx
A JSX block can either be inline or block, in your example line 1 is inline, the error is correct for inline content, there is no closing tag on line 1.
You want it to be a block, to do so use:
Initial checklist
Affected packages and versions
latest
Link to runnable example
No response
Steps to reproduce
Examples to paste into playground
Expected behavior
Should parse fine
Actual behavior
example.mdx
1:1-1:5 error Expected a closing tag for
<p>
(1:1-1:4) before the end ofparagraph
end-tag-mismatch mdast-util-mdx-jsx✖ 1 error
Runtime
Other (please specify in steps to reproduce)
Package manager
Other (please specify in steps to reproduce)
OS
Other (please specify in steps to reproduce)
Build and bundle tools
Other (please specify in steps to reproduce)
The text was updated successfully, but these errors were encountered: