Question: Render custom unescaped tag in fenced code blocks #642
-
Hi there. I created a BlockRenderer & Parser which works completely fine and inserts safely a specific HTML Tag. e.g. my awesome %%%html, which <u>is escaped</u>.
it works also with multiple lines! %%% where %%% renders an unescaped tag (once again, very safely in safe environment). Any ideas? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
There's no clean way to do this in 1.x during the parsing step, but you could add an event listener for the |
Beta Was this translation helpful? Give feedback.
There's no clean way to do this in 1.x during the parsing step, but you could add an event listener for the
DocumentParsedEvent
, find all the fenced code blocks, and do some additional parsing at that time to un-escape the HTML contents.