UseToc

A hook used to generate a table of contents based on the page content

Installation

Usage

Generate a table of contents using the content of the page.

Ignoring Headings

You can exclude headings from the table of contents by adding the data-toc-ignore attribute to the heading itself or to any parent element containing the heading.