-
Notifications
You must be signed in to change notification settings - Fork 26
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
Ability to exclude headings from TOC #15
Comments
Maybe with an option? Exclude: []? |
Oh, I see ... you are probably using |
Middleman just uses Kramdown by default
Results in...
|
Just noticed that it's already possible to exclude headings from TOC using level array notation. For example: |
Thanks @nagaozen that excludes all headers of a certain level. I was looking to exclude a specific header instance. This is useful if you want to keep the headings in an article, but perhaps just exclude one such as an aside block. |
The issue is still relevant. One workaround I've found is to define headers with html tags, e.g . I wish there was a way to ignore a Markdown-defined header specifically by this plugin. |
Looking exactly for this. It would be nice to exclude specific headers from the TOC, as kramdown does. Maybe exclude them based on their class. Actually, it could go both ways: exclude if "no_toc" or include if "toc". No need to use |
I am migrating from using Kramdown, and wondered if there is functionality to exclude headers from the TOC?
In Kramdown...
Would result in just creating the TOC with "Header 1" and "Header 3", excluding "Header 2" from the list.
Reference: https://kramdown.gettalong.org/converter/html.html#toc
The text was updated successfully, but these errors were encountered: