-
Hi team , example markdown: <ButtonLink>decline all non-essential cookies</ButtonLink>
<p>if you do not agree with the data processing described.<p> custom renderer: const renderer: RendererObject = {
ButtonLink({ tokens, depth }) {
// custom implementation
return <ButtonLink onClick={handleClick}></ButtonLink>;
},
}; i see we only have pre defined set of renderer method and can't extend it to use custom or non html tags ? Line 14 in 10020d0 Thanks in advance!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes you can create a custom extension that can tokenize any text you specify and render it however you want. If you want to be able to return something other than an html string you can use the |
Beta Was this translation helpful? Give feedback.
Yes you can create a custom extension that can tokenize any text you specify and render it however you want.
If you want to be able to return something other than an html string you can use the
provideParser
hook.