Contents
Go To Chapter 1
Go To Chapter 2
Go To Chapter 3
Go To Custom TOC Items
Chapter 1
This is the chapter 1 content.
Chapter 2
This is the chapter 2 content.
Chapter 3
This is the chapter 3 content.
Custom Table of Contents Example
These table of contents entries are created from ordinary elements using the data-heading attribute.
Custom TOC Item - Level 3
This entry was added to the table of contents using a custom <div> element with data-heading="3".
This visible text is ignored for the table of contents
This entry uses data-heading-text to set the table of contents title independently of the element text.
Excluded Heading (data-heading="false")
This is a real H3 heading, but it is excluded from the table of contents because of data-heading="false".
Note: The custom data-heading attribute is enabled only when the custom table of contents mode is used.