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
I confirm that this is a issue rather than a question.
Bug report
When using sidebar:auto sidebar links will be generated automatically from the headings in the markdown, however, if those headings are inside a vuejs code block that hides the section (ie, it has a v-if attribute to hide the contents based on a variable) the auto links are created regardless so you end up with links on the sidebar for content that isn't rendered to the page.
Version
0.x
Steps to reproduce
Create a page with frontmatter sidebar:auto and content of
Sidebar shouldn't show links for content that is hidden by vuejs
Hope you haven known the differences between build time and runtime. in VuePress, all the headers are extracted at build time, while your Vue.js code are running at runtime.
If you want to show a header dynamically, I suggest you to write HTML directly, so it will not be extracted by the internal markdown parser.
Bug report
When using
sidebar:auto
sidebar links will be generated automatically from the headings in the markdown, however, if those headings are inside a vuejs code block that hides the section (ie, it has av-if
attribute to hide the contents based on a variable) the auto links are created regardless so you end up with links on the sidebar for content that isn't rendered to the page.Version
0.x
Steps to reproduce
Create a page with frontmatter
sidebar:auto
and content ofWhat is expected?
Sidebar shouldn't show links for content that is hidden by vuejs
What is actually happening?
Sidebar shows links for all headings in the page whether they are visible or not
Other relevant information
The text was updated successfully, but these errors were encountered: