|
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!! |
Answered by
UziTech
Dec 13, 2024
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 |
1 reply
Answer selected by
gedewon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
provideParserhook.