Markup.TocSourceGeneric table of contents representation.
Type describing an entry tree in a table of contents. The representation of the elements is left to the implementation of plugins.
Builds a table of contents from an indexed list. For example, a list of headings in a Markdown document.
to_labelled_list toc converts toc into a list of labelled nodes. Each node is paired with an index represented as a list of integers, which indicates the node’s position in the hierarchical tree structure.