Can't extract my h4, h5 and display them in sidebar. #513
-
Hello, I've been seeing the PRs announcing a fix had been made for this yet I can't seem to make it work. My config.js (in docs/.vuepress): My page is a very simple Readme.md, no links, only some headings, texts and tables. Am i forgetting something ?
Thank you ! Found the solution for those in need : I added at the top of the document and |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Please read the docs carefully. |
Beta Was this translation helpful? Give feedback.
-
Hey, yes I've seen this solution, although nothing is getting extracted past 3. What is meant by "a subset of markdown.anchor.level" ? Is it something I need to add ? |
Beta Was this translation helpful? Give feedback.
-
So this is not working? module.exports = {
markdown: {
extractHeaders: {
level: [2, 3, 4, 5]
}
}
} |
Beta Was this translation helpful? Give feedback.
-
Removing 3 did alter the sidebar but adding 4 and 5 did nothing |
Beta Was this translation helpful? Give feedback.
-
Try this: module.exports = {
markdown: {
anchor: {
level: [2, 3, 4, 5]
},
extractHeaders: {
level: [2, 3, 4, 5]
}
}
} |
Beta Was this translation helpful? Give feedback.
-
Hey, just got back to work so I can try this. Didn't seem to do anything different. I added a test and h5 isn't extracted. The others are though so that's a start i guess |
Beta Was this translation helpful? Give feedback.
Try this: