huntertran / markdown-toc

Auto MarkdownTOC (Table Of Contents) plugin for Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=huntertran.auto-markdown-toc
MIT License
39 stars 25 forks source link

Add feature to ignore header #27

Closed ashwin-pc closed 4 years ago

ashwin-pc commented 4 years ago

Adds a feature to ignore a Header line if the preceding line has the tag <!-- TOC ignore:true -->.

E.g.:

<!-- TOC ignore:true -->
# Header to be ignored

# Header that should not be ingored

This will result in:

<!-- TOC -->

- [Header that should not be ingored](#header-that-should-not-be-ingored)

<!-- /TOC -->