-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
type: feature requestRequest to add a new featureRequest to add a new feature
Description
Bug report
My Page is structured with a lot of headlines, separating sections. I want so specify ony this one page to have a detailed rendered table of contents. I would not setup these detailed level for the complete project documentation. See attached example.
Version
$ npx vuepress --version
0.10.1
Steps to reproduce
---
sidebarDepth: 2
markdown:
toc:
includeLevel:
- 2
- 3
- 4
---
# My Page
[[toc]]
## Headline A
### Headline A1
#### A first
### Headline A2
#### A second
### Headline A3
#### A third
## Headline B
### Headline B1
#### B first
### Headline B2
#### B second
### Headline B3
#### B third
What is expected?
[[toc]]
should respect page configuration for markdown.toc.includeLevel
and all headlines should be rendered trought the table of contents for this page, in my example.
https://vuepress.vuejs.org/config/#markdown-toc
What is actually happening?
markdown.toc.includeLevel
is being ignored in documents Front Matter. I can only setup includeLevel
globally in config.js
Other relevant information
- Your OS: Mac OS X 10.13.5
- Node.js version: v9.10.1
- Browser version: Chrome v67
- Is this a global or local install? local
- Which package manager did you use for the install? npm
tedmiston
Metadata
Metadata
Assignees
Labels
type: feature requestRequest to add a new featureRequest to add a new feature