-
There is only document about Web components in MDX: https://johno.com/web-components-in-mdx When I developed a web component named <onii-quil></onii-quil> It renders as I haven't found any solution to bypass |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
From the discussion in #2100 |
Beta Was this translation helpful? Give feedback.
-
For If things are disappearing, well, they shouldn’t. Please provide more info so I can help debug your code. |
Beta Was this translation helpful? Give feedback.
<onii-quill />
is not HTML. It’s JSX. If you have markdown, markdown supports HTML, and it won’t support JSX.For
<onii-quil></onii-quil>
, CommonMark describes your behavior: https://spec.commonmark.org/dingus/?text=%3Conii-quil%3E%3C%2Fonii-quil%3E. If that is what the loader results in, it is correct.If you want to write it so that the paragraph doesn’t show up, put the opening and closing tag on two lines to get “condition 7” (what I call “complete HTML”) https://spec.commonmark.org/0.30/#html-blocks.
I have in the past found this condition a bit too strict. I can imagine, like you, that a closing tag should be allowed to follow the opening tag. You could raise an issue with CommonMar…