How can I exempt stretches of text from being processed as Markdown? #303

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

Originally created by @deanebarker on GitHub (Jul 1, 2019).

Is there anyway to turn off the parser for stretches of code? Like:

This is some Markdown.

# markdownoff
This is some crazy HTML construct that I don't want Markdown to touch or even know about.
# markdownon

This is some more Markdown.

Clearly that doesn't work, but that's basically what I'm looking for.

Originally created by @deanebarker on GitHub (Jul 1, 2019). Is there anyway to turn off the parser for stretches of code? Like: ``` This is some Markdown. # markdownoff This is some crazy HTML construct that I don't want Markdown to touch or even know about. # markdownon This is some more Markdown. ``` Clearly that doesn't work, but that's basically what I'm looking for.
claunia added the enhancementPR Welcome! labels 2026-01-29 14:33:15 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#303