mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
Allow more leading # in ATX heading as a customization option #255
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 @yufeih on GitHub (Jan 7, 2019).
We are using
TOC.mdto represent table of contents, It is a restricted markdown format that only allows several known markdown syntax, like links and ATX headers.Sometimes these files can be very big and exceed maximum leading count as defined by common mark spec, like this one,
The ask is if it is possible to have an option in
HeadingBlockParserthat can override the default max leading count (6), so we can reuseHeadingBlockParserto parse our special TOC markdown.Related https://github.com/dotnet/docfx/issues/3874
@xoofx commented on GitHub (Jan 7, 2019):
Sure, via an extension and a slight change on
HeadingBlockParser, PR welcome@OsmondJiang commented on GitHub (Jan 8, 2019):
Thanks a lot for quickly merging the PR 👍, it would be great if we can know when we can get a new nuget version?
@xoofx commented on GitHub (Jan 11, 2019):
It should be come with upcoming
0.15.7in a few minutes