Skip to content

Table of Contents - configurable heading depth #1521

Closed
@BlueMM75

Description

Problem to Solve

The ability to create a Table of Contents and also being able to refresh it is fantastic. But sometimes when I have a lot of headings and also a lot of depth to those headings (say Heading 1 to Heading 6), the TOC becomes huge and not easy to navigate.

New Feature/Solution

Provide the ability in the Table of Contents dialog, to specify the heading depth desired.
An example usage would be a user picking the depth (say a dropdown with each of the heading levels specified), selecting "2" and the TOC is generated with only Heading 1 and Heading 2 styles from the page.
Refreshing would also take into account the configuration of the TOC.
Bonus points would be for also taking into account the Title style, which I have seen before and sometimes use as a higher-level outline (the equivalent of Heading 0). So in the example above, the TOC would use all Title, Heading 1 and Heading 2 styles to outline. Happy to spin this off into a separate request if that's better.

Alternative Solutions

None that I can think of.

Additional Context

Similar to how MS Word works when inserting a TOC, the ability to only show levels to a certain depth:
image

Metadata

Assignees

Labels

feature-requestNew feature or requestreleasedAvailable in a released installer

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions