This repository was archived by the owner on May 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 109
Suggestion: a way to ignore certain headings #26
Labels
Comments
Thank your for your advice, it's a good idea, i will add it when version 1.6.0~ |
Would be great to have 1.6.0 released in the store! Thanks for implementing it! |
So 1.6.0 is not released yet? |
This feature seems to appear in the source code: However, writing something like this does not work ## Table of Contents <!-- TOC ignore:true -->
<!-- TOC depthFrom:2 -->
...
<!-- /TOC --> Seems like the because of #50,
(the header as well as anything between it and @alanwalk would you be happy to accept a PR and release a new version? |
mcornella
added a commit
to mcornella/markdown-toc
that referenced
this issue
Sep 23, 2020
mcornella
added a commit
to mcornella/markdown-toc
that referenced
this issue
Nov 2, 2020
mcornella
added a commit
to mcornella/markdown-toc
that referenced
this issue
Nov 2, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It would be nice to have some sort of way to ignore certain headers and omit them from the TOC. In my example below, the TOC is in the Contents section, so it doesn't really need to be included.
One idea might be to optionally ignore sections containing the TOC itself. Another might be some syntax similar to:
## Contents <!-- TOC omit:true -->
It's not really a big deal, but would be nice.
The text was updated successfully, but these errors were encountered: