Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore Specific Headers For TOC #907

Open
scrooks opened this issue Feb 11, 2021 · 0 comments
Open

Ignore Specific Headers For TOC #907

scrooks opened this issue Feb 11, 2021 · 0 comments

Comments

@scrooks
Copy link

scrooks commented Feb 11, 2021

I've looked pretty hard and don't see a way to tell the generated TOC to ignore specific headers in my document. For example:

# A

# B

## BA

# C

Now I stick in a TOC:

# A

[TOC levels=1-6]: # "TOC"

# TOC
- [A](#a)
- [B](#b)
  - [BA](#ba)
- [C](#c)

# B

## BA

# C

I want to do something like this to leave out header A:

<!-- omit in toc -->
# A

[TOC levels=1-6]: # "TOC"

# TOC
- [B](#b)
  - [BA](#ba)
- [C](#c)

# B

## BA

# C
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant