22

Table of Content (TOC) Numbering Based on Header Hierarchy

new
November 17, 2024

The TOC numbering currently increments continuously (1, 2, 3…) without considering the hierarchical structure of HTML headers (h2, h3, h4…). This makes it challenging to differentiate between main headings and subheadings.

Requirement Details:
Enhance the TOC numbering logic to reflect the hierarchical structure of the headings in the content.
The numbering should display as follows:
h2: Top-level numbering (1, 2, 3…).
h3: Nested under h2 (1.1, 1.2, 2.1…)
….

Example:
Below is a sample structure of headings in the content and their corresponding TOC numbering:
1.

First h2 Heading
1.1

First h3 under First h2
1.2

Second h3 under First h2
2.

Second h2 Heading
2.1

First h3 under Second h2

Objective:
Ensure the TOC accurately mirrors the content structure.
Improve user experience by providing a clear and intuitive navigation system.

Notes:
I understand that you use it in relation to top listings and schema. However, from a user perspective and viewing logic, it doesn’t seem reasonable. Could you consider adding this option? I’ve seen many people sharing similar opinions on this issue.

Leave a Reply

Your email address will not be published. Required fields are marked *

Latest Voters