Bug Report Steps to reproduce Use this configuration: window . $docsify = { subMaxLevel : 2 , loadSidebar : true } ; Use a _sidebar.md, it could be as simple as: add a file with 2 embedded files, such as: # Hello
Hello world
## Title 1
Lorem ipsum
[ insert something] ( file.mp4 " :include ") [ insert something else] ( file.mp4 " :include ") You can also see it live in https://codesandbox.io/s/problem-with-docsify-4cyldv
What is current behaviour The Toc is generated twice, but in a nested way. In the above example, this looks like it:
See also this screenshot:
What is the expected behaviour We have the TOC only once, this should look like this in this case:
This happens when there's only one embedded asset.
Other relevant information Bug does still occur when all/other plugins are disabled?
Your OS: not relevant
Node.js version: not relevant
npm/yarn version: not relevant
Browser version: Firefox 103, but I also tried in Chrome stable, so I believei t's not relevant
Docsify version: 4.12.2
Docsify plugins: none
Please create a reproducible sandbox https://codesandbox.io/s/problem-with-docsify-zl23lm
Mention the docsify version in which this bug was not present (if any) I haven't tried earlier versions, it's the first time I try this.
Bug Report
Steps to reproduce
_sidebar.md, it could be as simple as:You can also see it live in https://codesandbox.io/s/problem-with-docsify-4cyldv
What is current behaviour
The Toc is generated twice, but in a nested way. In the above example, this looks like it:
See also this screenshot:

What is the expected behaviour
We have the TOC only once, this should look like this in this case:
This happens when there's only one embedded asset.
Other relevant information
Bug does still occur when all/other plugins are disabled?
Your OS: not relevant
Node.js version: not relevant
npm/yarn version: not relevant
Browser version: Firefox 103, but I also tried in Chrome stable, so I believei t's not relevant
Docsify version: 4.12.2
Docsify plugins: none
Please create a reproducible sandbox
https://codesandbox.io/s/problem-with-docsify-zl23lm
Mention the docsify version in which this bug was not present (if any)
I haven't tried earlier versions, it's the first time I try this.