vuepress / vuepress-community

:bulb: Community supported ecosystem for VuePress
https://vuepress-community.netlify.app
MIT License
82 stars 62 forks source link

include-level does not go beyond level 3 #79

Closed wkande closed 3 years ago

wkande commented 3 years ago

Environment

What's your question?

This only outputs levels 2-3 in my markdown files. I seem to have it right per the docs.

<TOC :include-level="[2,4]" />

Pic below is showing ## and ### only. Level 4 (####) is missing. Level 1 (#) is excluded as expeted.

Screen Shot 2021-05-11 at 3 46 34 PM

wkande commented 3 years ago

Solved my own issue, add the following to the config.js:

markdown: {
   extractHeaders: ['h2', 'h3', 'h4']
 },

Might be nice to mention this in the docs.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.