Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow more leading # in ATX heading as a customization option #282

Closed
yufeih opened this issue Jan 7, 2019 · 3 comments
Closed

Allow more leading # in ATX heading as a customization option #282

yufeih opened this issue Jan 7, 2019 · 3 comments

Comments

@yufeih
Copy link
Contributor

yufeih commented Jan 7, 2019

We are using TOC.md to 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 HeadingBlockParser that can override the default max leading count (6), so we can reuse HeadingBlockParser to parse our special TOC markdown.

Related dotnet/docfx#3874

@xoofx
Copy link
Owner

xoofx commented Jan 7, 2019

Sure, via an extension and a slight change on HeadingBlockParser, PR welcome

@OsmondJiang
Copy link
Contributor

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
Copy link
Owner

xoofx commented Jan 11, 2019

It should be come with upcoming 0.15.7 in a few minutes

@xoofx xoofx closed this as completed Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants