Skip to content

Getting all headings after parsing to html #2461

Answered by UziTech
4e576rt8uh9ij9okp asked this question in Q&A
Discussion options

You must be logged in to vote

You can use walkTokens to run a function for each token and collect the heading tokens to create a TOC.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@4e576rt8uh9ij9okp
Comment options

Answer selected by 4e576rt8uh9ij9okp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants