Table of content configuration
Configuration of the TOC - Table of Content
Last modified 2025-09-05
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
}
tocEnableddefault istrueboolean 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: trueon selected page’s front matter.tocHtmlTagsdefault is["h1", "h2", "h3", "h4", "h5", "h6"]is an array of heading tags to detect as table of content items.tocMinTagsdefault is1is an integer that sets the minimum amount of TOC HTML tags found onto the page to display the table of content.
Above settings adjust both main and floating Tables Of Content.