You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@UziTech and @Feder1co5oave: Check the pseudo PR from @yzfdjzwl. This intrigues me. I know I made the comment in #1043 about possibly deprecating the header id functionality, but this seems intriguing considering how many times I've seen this type of thing in some of the issues.
Activity
paxidently commentedon Feb 16, 2015
Just define custom renderer. Like this:
anaran commentedon Mar 9, 2015
Worked great for me, thanks!
joshbruce commentedon Dec 15, 2017
Closing as out of scope based on current focus.
See #956
yzfdjzwl commentedon Feb 8, 2018
Those answers above, only support English, do not support Chinese.So I add some rules based on the example above:
Hope it can help we Chinese.
joshbruce commentedon Feb 9, 2018
@UziTech and @Feder1co5oave: Check the pseudo PR from @yzfdjzwl. This intrigues me. I know I made the comment in #1043 about possibly deprecating the header
idfunctionality, but this seems intriguing considering how many times I've seen this type of thing in some of the issues.joshbruce commentedon Feb 11, 2018
#1048
ibreathebsb commentedon May 16, 2019
#1489
watercoldyi commentedon May 23, 2019
Those answers above,do not support multi-level tree TOC. So I add some code based on the example above:
jenstornell commentedon Sep 27, 2019
I've made a TOC solution where the javascript is less complicated but still supports nesting, at least visually.
Javascript
I did not need clickable headings, but if you need it, look at the first comment in this issue.
I use Vue so I output the data in a template like this.
SCSS
The nesting is made with pure CSS (SCSS). The different heading tags have different margins.
dinoox commentedon Jan 19, 2021
the last label a should be /a Otherwise, the following text parsing will be abnormal
albfan commentedon May 14, 2022
I usually don't need to change whole marked for table of contents (like sidebar with toc and all text rendered)
This is an example on how to apply this toc on fly. If you have a div
contentand a divtable-content:CarterLi commentedon Jul 5, 2022
Generate TOC with indentation