reason for "end-tag-mismatch" error #2260
Answered
by
ChristianMurphy
stefanprobst
asked this question in
Q&A
-
hi, i am getting an error with the following simple input, and it's not really clear to me why: import { compile } from "@mdx-js/mdx";
const input = `<p>
</p>`;
const out = await compile(input); could someone explain? thanks! interestingly, when i remove |
Beta Was this translation helpful? Give feedback.
Answered by
ChristianMurphy
Feb 20, 2023
Replies: 1 comment
-
See #2181 and #2053 MDX embedded JSX can be inline: <p>text</p> Or MDX embedded JSX can be a block <p>
text
</p> both of the above are valid. Content cannot mix inline and block with the same tag, such as: <p>text
</p> or <p>
text</p> both of the above are invalid |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stefanprobst
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #2181 and #2053
To repeat:
MDX embedded JSX can be inline:
Or MDX embedded JSX can be a block
both of the above are valid.
Content cannot mix inline and block with the same tag, such as:
or
both of the above are invalid