mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-07 21:42:25 +00:00
Heading variations #75
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 @mhomde on GitHub (Dec 6, 2016).
I've come across some heading variations that are not picked up by the parser
Any header where there's no space between # and the heading, for ex:
#HeadingWhen headers are combined with markdown, ex:
###**HEADING**Not sure if this goes against the spec but would be great if they could be covered somehow
Keep up the good work!
@xoofx commented on GitHub (Dec 6, 2016):
Yes, it is part of the CommonMark specs: ATX headings: The opening sequence of # characters must be followed by a space or by the end of line.
@xoofx commented on GitHub (Dec 6, 2016):
Note that as github is transitioning to Commonmark, they now follow the same rule:
@mhomde commented on GitHub (Dec 6, 2016):
Can I write an extension or something to get around this? Reddit markdown is notoriously sloppy ... :/
@xoofx commented on GitHub (Dec 7, 2016):
Yes, you can. You will have to modify the HeadingBlockParser to add a bool property in order to support this switch (some extensions like SoftlineBreakAsHardlineExtension are done like this)