marksy icon indicating copy to clipboard operation
marksy copied to clipboard

Render custom components inside markdown content

Open phaistonian opened this issue 6 years ago • 4 comments

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?

phaistonian avatar Mar 02 '18 13:03 phaistonian

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?

ChristophLabacher avatar Mar 07 '18 18:03 ChristophLabacher

+1

tscheiki avatar Oct 18 '18 09:10 tscheiki

I found that if you wrap all text with a custom component that just passes through the data, custom inline components work as intended.

xtrinch avatar Dec 06 '19 10:12 xtrinch

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

christianalfoni avatar Dec 30 '19 16:12 christianalfoni