-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
TOC helper: add min_depth #3288
Comments
What would |
This is a duplicate post for the record I usually use this:
Can you try and see if it works? |
|
hexo-toc has no min depth too bubkoo/hexo-toc#23 because it is using https://github.com/jonschlinkert/markdown-toc that has no min depth too. |
@tcrowe This is not a duplicate issue at all one is TOC plugin (in addition of the helper) the other is TOC helper: add min_depth, so plugin vs helper. |
@noraj I see now so that does appear useful to change from h1 to h2 |
@noraj , a quick hot fix could be
deleting the headings element that you don't require in the above array eg. |
Enhancement
On the TOC helper (https://hexo.io/docs/helpers#toc), it would be great to add a
min_depth
option so we are able to set a minimum heading depth of generated toc.This way we will be able to exclude h1 from the TOC for example.
The text was updated successfully, but these errors were encountered: