Skip to content

Question: Render custom unescaped tag in fenced code blocks #642

Answered by colinodell
whoisyare asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by colinodell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question General questions about the project or usage stale Issue may be closed soon due to inactivity
2 participants
Converted from issue

This discussion was converted from issue #580 on June 12, 2021 13:58.