Limit "table of contents" to Title/Heading

Is your feature request related to a problem? Please describe.
When having an object with a lot of content and many Titles/Headings/Subheadings the table of contents gets very large.

Describe the solution you’d like
I would like to limit the table of contents to show only the titles. Giving a more compact overview and making it smaller.

Describe alternatives you’ve considered
There aren’t alternatives right now. Right?


This could be an option where someone would be able to choose what is shown whether is Title, Heading or Subheading.

Maybe adding toggles to the table of contents could be useful?

For my class notes I would prefer to have all of them shown so I can navigate easy but it might not be the case for someone else.


I second the vote for options. I’d also like to see support for Subheadings of level 3 and higher so the table of contents can go as deep as needed.

Acknowledged, it will be done as as part of editor polishing stream