Replies: 2 comments
-
This one seems tricky because it seems like an issue with markdown-it. Might be worth looking around for issues with markdown-it and custom elements. I’d like to do a little testing and see if I can come up with something, but as a temporary fix, have you tried this? <div webc:is="custom-element"></div> I think markdown-it will recognize the It is possible that what markdown-it is doing is the “right” thing, because custom elements, by default, are |
Beta Was this translation helpful? Give feedback.
-
In straight markdown I found that doing two spaces and then shift + enter gives me a newline and not a paragraph. I don't know if it helps in this situation but wanted to throw it out there in case it did and in case anyone else comes across this. |
Beta Was this translation helpful? Give feedback.
-
When using markdown and mixing some HTML into the content, custom elements are being wrapped in paragraph tags. For example:
The above becomes:
I can avoid that by wrapping the element in a
<div>
. But I'd rather not resort to that if I can avoid it. Is there a way of configuring the markdown parser/renderer to treat either certain HTML elements or any hyphenated element as block-level?Beta Was this translation helpful? Give feedback.
All reactions