vsch / idea-multimarkdown

Markdown language support for IntelliJ IDEA.
https://plugins.jetbrains.com/plugin/7896-markdown-navigator
Apache License 2.0
815 stars 127 forks source link

Ignore Specific Headers For TOC #907

Open scrooks opened 3 years ago

scrooks commented 3 years ago

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