Exclude heading from toc globally
See original GitHub issueWhat is the problem?
I want to exclude the heading “# On this page” from my workspace toc globally. I reviewed the instructions and it seems it might be possible. I’m not able to figure out the right syntax.
How can I reproduce it?
"markdown.extension.toc.omittedFromToc": {
"/Users/{users}/Documents/{documentation-folder}":[
"# On this page"
]
},
Is there any error message in the console?
Proposals
- Add wildcard support to the
omittedFromToc
configuration. (1 vote) - Add an option to exclude headings before the position of the TOC. (2 votes)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:18 (5 by maintainers)
Top Results From Across the Web
Possible to exclude levels in outline list from table of ...
I need to be able to generate a table of contents that includes the Section Heading and Subsection Headings, but not the (a)...
Read more >Quick Tip: How to exclude headings from the Table of ...
Use the Custom Table of Content … in the “Table of Contents” drop down. Look under “General”, and “Show Levels” then change it...
Read more >4.18 Omit a heading in the table of contents | R Markdown ...
If you do not want certain section headings to be included in the table of contents, you can add two classes to the...
Read more >Non-TOC headings within a reStructuredText page
Note: in step (3), you could define the CSS selectors more broadly or narrowly. If the new class names are globally unique, the...
Read more >Headings and Table of contents
Note that the toc global is a flat array, so you can easily cut out unwanted nodes or insert extra nodes, and create...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the easiest change to understand would be to make the path wildcard enabled:
Also, as an aside, it would be nice if the string being ignored could be done in a case insensitive way. Otherwise, you’d have to add
"# Index"
and"# INDEX"
and hope that"iNdex"
isn’t used.A sketch of the “exclude-heading” setting I talked above: