mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-11 13:54:50 +00:00
Can the interpetation of code blocks formed from indented lines be turned off? #305
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @deanebarker on GitHub (Jun 19, 2019).
For a variety of pre-processing reasons, some of my lines of markdown end up with leading spaces. MarkDig interprets this as a code block, which I really don't want. I'd like it to be ignored.
Is there any way to shut off this specific rule? I don't really have any code blocks in this particular body of content, and if I did, I could fence it with other blocks.
@MihaZupan commented on GitHub (Jun 19, 2019):
Indented code blocks are handeled by the
IndentedCodeBlockParser. Simply remove it from the pipeline.@deanebarker commented on GitHub (Jun 20, 2019):
Wonderful, thank you.
For some reason, my version of Markdig didn't have
TryRemove. I did this instead.@ferventcoder commented on GitHub (Jan 2, 2020):
Thanks! I was just in looking for this. Might not be a bad idea to add this to the MarkdigExtensions to disable these.