Best way to unescape HTML code in code blocks #237

Open
opened 2026-01-29 14:31:06 +00:00 by claunia · 0 comments
Owner

Originally created by @pacman21 on GitHub (Oct 29, 2018).

I have a need to unescape HTML code that we inject into our markdown, more or less, as a hack to get features that markdown generally doesn't support. What is the best way to go about this? I'm trying to create a custom extension, however I haven't been able to figure out how to modify the contents of the code block. I looked through the code and some of the documentation to try to find this, but haven't really ran into anything.

Can you point in the right direction to find some documentation related to this?

Originally created by @pacman21 on GitHub (Oct 29, 2018). I have a need to unescape HTML code that we inject into our markdown, more or less, as a hack to get features that markdown generally doesn't support. What is the best way to go about this? I'm trying to create a custom extension, however I haven't been able to figure out how to modify the contents of the code block. I looked through the code and some of the documentation to try to find this, but haven't really ran into anything. Can you point in the right direction to find some documentation related to this?
claunia added the question label 2026-01-29 14:31:06 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#237