-
Notifications
You must be signed in to change notification settings - Fork 526
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
Passing a nesting_level range instead of integer #519
Comments
Hi! Thanks for the proposal! Yes, it seems to be a pretty good idea, it's pretty common to have an h1 as the page's title so you don't need it inside the table of contents. You can ask for help if you struggle with the C code! :-) |
Thanks for the offer to help. I delved into the code yesterday a bit and I'll admit I couldn't figure out how to store a range in C. So I switched to the idea of storing some sort of offset integer instead and skip outputting heading levels below that offset. That's when I noticed |
Hi @olivierlacan, I'm sorry this got out of my radar ; I'm still interested in implementing this feature. Do you want to give it a try or you gave up (I would understand actually 😅 ) ? |
Any news on this? This seems like a neat feature :) Thanks! |
@axilleas @olivierlacan : This feature is now available, it will be available in the next version of Redcarpet. ❤️ |
Robin, you're the best maintainer. Thanks so much for all your work! |
Thank you for the kind words ! ❤️ 💙 💛 💚 💜 |
Aww yiss!!! Thank you! |
I have an admittedly edgy case. I generate all of http://keepachangelog.com 's index.html from its GitHub-hosted
README.md
This means I'd like to exclude the
h1
andh2
from the TOC.Would you mind if I added an option to pass a
nesting_range
toHTML_TOC
as an alternative to the existingnesting_level
?The text was updated successfully, but these errors were encountered: