- /
-
- Configuration /
- Table of content - Configuration
Table of content - Configuration
Configuration of the TOC - Table of Content
2025-05-23
ITADS
In settings.json
, the following parameters are related to the table of content.
{
"tocEnabled": true,
"tocHtmlTags": ["h1", "h2", "h3", "h4", "h5", "h6"],
"tocMinTags": 1
}
tocEnabled
default istrue
boolean true of false, enables or disables table of content feature into the header of each page created. However, this parameter can be set on any page and then overrides the default value. For example, you can disable TOC by default and settocEnabled: true
on selected page’s front matter.tocHtmlTags
default is["h1", "h2", "h3", "h4", "h5", "h6"]
is an array of heading tags to detect as table of content items.tocMinTags
default is1
is an integer that sets the minimum amount of TOC HTML tags found onto the page to display the table of content.