-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Ability to control/increase the Heading levels suppported by TOC Plugin #1023
Comments
Vote +1 |
The reason why the TOC only displays h2 ~ h3 headings is not due to performance, but rather to consider the horizontal width of multi-level headings. If three levels (h2 ~ h4) are displayed, the text of the third level (h4) heading will wrap multiple times. I think this is also the reason why mainstream web design only displays h2 to h3. |
But I think many guys would want to show |
I also still feel like at least the option to show |
If this is the problem, I think |
In my case TOC is not displaying on my posts even for h2 and h3 even though I have TOC set to true in _config.yml. Has anyone had this issue before? |
I've been modifying it myself so that H4 appears in the ToC, but I'm not sure if there's a problem. This is the commit I pushed to use, and it looks fine on my blog at the moment. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
NOTE: Before you start, the following should be completed.
master
branch.Is your feature request related to a problem? Please describe
The new TOC plugin (tocbot) that has been introduced in Chirpy only works for H2 and H3. In all my articles I only use heading levels H3 and below become of which Chirpy does not show H4, H5 headers as part of the Table of Content.
Describe the solution you'd like
If the TOC plugin has been limited to H2 and H3 because of performance reasons it would be great if an option in the config file was introduced where we can mention which levels of Headers should be considered for generating the TOC.
Describe alternatives you've considered
Additional context
Other Issues related to TOC plugin: #1013
The text was updated successfully, but these errors were encountered: