-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Section numbers are off by one after horizontal rules #779
Comments
If someone could drop some pointers for me in here, I would be happy to try and whip up a fix :) |
My first suggestion would be to see if this happens with upstream pulldown-cmark. I can't think of anywhere in mdbook itself that is likely to cause this at the moment, but hopefully I can be more helpful if it's not a bug in pulldown-cmark. |
The Table of Contents is not rendered by pulldown-cmark, but by the toc helper and previously parsed in summary.rs, which is where I think an off-by-one error is hidden. |
If one has this
SUMMARY.md
:then one ends up with this bogus section numbering:
The text was updated successfully, but these errors were encountered: