marksy
marksy copied to clipboard
Render custom components inside markdown content
Hello,
Is something like this doable?
- list item
- list item 2
- list item containing <Custom>custom component</Custom>
When <Custom>custom component</Custom>
is not inside the list it works fine, when it is, then the component is escaped.
Ideas?
Unfortunately the same seems true, even when the custom component is just contained within a simple Markdown paragraph.
So even this does not work:
I need an <Custom>inline</Custom> component.
I too would love to know whether there is any way to get custom inline components to work?
+1
I found that if you wrap all text with a custom component that just passes through the data, custom inline components work as intended.
Yeah, this is just the behaviour of the parser. I think maybe even doing:
<div>I need a <Custom>inline</Custom> component</div>
Would work