What is the right way to create a table of contents base on headings? #408
-
Beta Was this translation helpful? Give feedback.
Answered by
Saul-Mirone
Mar 5, 2022
Replies: 1 comment 1 reply
-
You can calculate the outline from data in listener. Check how I did it here: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
9vek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can calculate the outline from data in listener. Check how I did it here:
https://github.com/Saul-Mirone/vite-plugin-book/blob/2f0d95fba56fa6d57d56e54b396104e68fb34e94/packages/vite-plugin-book/src/hook/useEditor.ts#L66