mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-08 13:54:54 +00:00
Removing of HeadingBlockParser from pipeline.BlockParsers is not affect setext headings #77
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 @magicxor on GitHub (Dec 20, 2016).
I'm trying to make stop markdig from parsing headers (h1-h6).
But this code doesn't affect setext headings.
Is it normal behavior? How can I solve this problem?
Thanks.
@xoofx commented on GitHub (Dec 21, 2016):
Unfortunately, disabling setext headings requires an internal change because the parsing is performed inside the ParagraphBlockParser. It is perfectly possible to do it by adding a boolean property on this parser, and provide an extension for it (PR welcome!)