tableofcontents
.tableofcontents title:{InlineMarkdownContent? = null}
maxdepth:{Int = 3}
includeunnumbered:{Boolean = false}
focus:{InlineMarkdownContent? = null}
-> NodeGenerates a table of contents, based on the headings in the document, organized in a hierarchical structure defined by each heading's depth.
Return
a TableOfContents node
Parameters
- Optional
- Likely named
title of the table of contents. If unset, the default localized title is used
- Optional
- Likely named
maximum depth of the table of contents. Only headings with a depth (number of leading #s) equal to or less than this value are included.
- Optional
- Likely named
if enabled, unnumbered (decorative) headings are also included in the table of contents. By default, only numbered headings are included.
- Optional
- Likely named
if set, adds focus to the item of the table of contents with the same text content as this argument. Inline style (strong, emphasis, etc.) is ignored when comparing the text content. When at least one item is focused, non-focused items are visually de-emphasized.