-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[[toc]]
not working after using custom containers
#1093
Labels
build
Related to the build system
Comments
[[toc]]
not working after using custom containers
Caused by #768.
🤔🤔 Need more investigation later |
Oh I know the reason. The headers are collected inside the toc-plugin, and calling |
meteorlxy
added a commit
to meteorlxy/vitepress
that referenced
this issue
Aug 18, 2022
brc-dd
pushed a commit
that referenced
this issue
Aug 19, 2022
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
Placing a table of contents shortcode after a custom container (tip, warning, danger, etc) will cause the table of contents element to render empty with no children.
Reproduction
index.md:
Expected behavior
The TOC outline should be populated with children but instead it just renders as
<nav class="table-of-contents"></nav>
System Info
The text was updated successfully, but these errors were encountered: