tableofcontents
.tableofcontents title:{InlineMarkdownContent? = null} \
maxdepth:{Int = 3} \
breakpage:{Boolean = true} \
headingdepth:{Int? = null} \
numberheading:{Boolean = false} \
indexheading:{Boolean = false} \
focus:{InlineMarkdownContent? = null}
-> NodeContent copied to clipboard
Generates a table of contents, based on the headings in the document, organized in a hierarchical structure defined by each heading's depth.
Return
an AstRoot containing an optional heading and a TableOfContentsView
Parameters
title
- Optional
- Likely named
title of the table of contents. If unset, the default localized title is used. If blank, no title is displayed.
numberheading
whether the heading preceding the table of contents should be numbered and have its position tracked in the document hierarchy. Implicitly enabled when indexheading is enabled.