nagaozen / markdown-it-toc-done-right

A table of contents (TOC) plugin for Markdown-it with focus on semantic and security. Made to work gracefully with markdown-it-anchor.
MIT License
133 stars 26 forks source link

Ability to exclude certain headings from TOC #69

Open kilimnik opened 2 years ago

kilimnik commented 2 years ago

I implemented the Issue #68.

I also noticed that the anchor plugin adds a space to the headings when permalinks are enabled. That's why I added the trim call to the comparison.