You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: packages/docs/docs/theme/default-theme-config.md
+11
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,17 @@ module.exports = {
169
169
}
170
170
```
171
171
172
+
### Extract Headers
173
+
While preparing the page, headers are extracted from the Markdown file and stored in `this.$page.headers`. By default, VuePress will extract `h2` and `h3` elements for you.
174
+
You can override the headers it pulls out in your `markdown` options.
175
+
```js
176
+
module.exports= {
177
+
markdown: {
178
+
extractHeaders: [ 'h2', 'h3', 'h4' ]
179
+
}
180
+
}
181
+
```
182
+
172
183
### Active Header Links
173
184
174
185
By default, the nested header links and the hash in the URL are updated as the user scrolls to view the different sections of the page. This behavior can be disabled with the following theme config:
0 commit comments