When I include the following configuration in the config.js file:
markdown: {
toc: {
includeLevel: [2]
}
}
The [[toc]] in my .md files renders empty, even though the page is full of <h2> headings:
<div class="table-of-contents"> <ul></ul> </div>
If I remove the extra configuration, it works fine, but renders both <h2> and <h3> (as expected, but not desired).
1.0.0-alpha.44
Repo: https://github.com/danrocha/tfa-vuepress
Add and remove the configuration above in config.js and check the rendered page, for example, http://localhost:8080/guides/dubai/#buildings (right below the map).
To have a Table of Contents with only <h2> level headings displayed.
The Table of Contents div renders empty.
Sorry to hear that.
It's a known issue introduced by 1.0.0-alpha.41. I will fix it in several weeks.
Most helpful comment
Sorry to hear that.
It's a known issue introduced by
1.0.0-alpha.41. I will fix it in several weeks.