bubkoo / hexo-toc

📖 Insert a markdown TOC before posts be rendered.
MIT License
126 stars 17 forks source link

No min anchor level #23

Open noraj opened 6 years ago

noraj commented 6 years ago

hexo-toc only has a maxdepth config but not a mindepth.

One usually wants to avoid h1 to be part of the TOC. markdown-toc has only an option to exclude the first h1.

hexo-toc is not compatible with markdown-it (see https://github.com/bubkoo/hexo-toc/issues/20) so the min anchor level of markdown-it is ignored.

noraj commented 6 years ago

May be it is possible to do something like https://github.com/Oktavilla/markdown-it-table-of-contents with includeLevel and some people will like listType to switch between ul and ol (see https://github.com/bubkoo/hexo-toc/issues/21).