miaolz123 / vue-markdown

A Powerful and Highspeed Markdown Parser for Vue
https://miaolz123.github.io/vue-markdown/
MIT License
1.89k stars 257 forks source link

TOC: Do not manually compute TOC depth #102

Open rebz opened 4 years ago

rebz commented 4 years ago

It does not matter what I define the last level to be, the package appears to overwrite what I define if it is not 1 greater than toc-first-level.

Example:

<vue-markdown
    :toc="true"
    :toc-first-level="2"
    :toc-last-level="2"
/>

I want to ONLY SHOW Headline 2 in my Table of Contents. Unfortunately, it will always show Headline 2 and Headline 3. It is not possible for me to get around this with the current iteration of this package.

The package should not override the depth that I have dictated for the Table of Contents.