Table of Contents - Allow Users to Select Which Heading Levels Will Be Included #51605
Labels
[Block] Table of contents (experimental)
Affects the Table of contents Block
Needs Design
Needs design efforts.
[Status] In Progress
Tracking issues with work in progress
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Currently, the Table of Contents block inserts a link for all headings it finds in the post. However, if there are a lot of headings in the post, and if the author has used a combination of H1, H2, H3, H4, H5, H6 headings, etc, then the Table of Contents can be undesirably long.
What is your proposed solution?
The settings of the block should allow editors to select which heading levels will be included in the Table of Contents block.
I think the simplest option would be that users can choose the lowest level of heading that should be included in the TOC. It would be a single drop-down of the 6 heading levels. If a user chooses H3, then only H1, H2 and H3 headings will be included in the TOC. If they chose H6 then all heading levels will be included in the TOC.
The text was updated successfully, but these errors were encountered: