-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Increasing TOC levels #1013
Comments
You need to compile by running |
Thank you for your help but I ran it some issues. I downloaded the package.json file and put it in the blog folder. From there (after making the aforementioned changes) ran the command |
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.
Description
I want to display h4 headers in the table of content. I tried changing the toc.html and toc.js files. There is a related issue dealing with h1 headers however that solution (the below one changing the toc.js file) doesn't work. There are a few more issues by the same title (!) but those are based on bootstrap-toc, however, tocbot does allow for an increased level of TOC.
In toc.js file I added h4 in headingselector and querySelector. As according to tocbot github repo changing headingSelector should do the trick.
In toc.html I added
or page.content contains '<h4'
in line 3.Both changes didn't allow for h4 header showing up in toc. Any idea how to show h4 (or for that matter any subheaders) in table of content.
The text was updated successfully, but these errors were encountered: