Set a level for headings in the toc. #939
-
Let me start by saying that this project is truly wonderful, thank you so much for all the hard work and dedication! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
There is no built-in way to change the depth of its toc item without affecting the heading level. The only option is to manipulate the TOC array in your page.tsx passed to the DocsPage component.
You can use the MDX syntax, instead of markdown syntax. The heading JSX elements won't be included in TOC.