We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For the given HTML:
<h1>Depth 1</h1> <h2>Depth 2</h2> <h3>Depth 3</h3> <h4>Depth 4</h4> <h5>Depth 5</h5> <h3>Depth 3</h3> <h2>Depth 2</h2>
And ToCify configured thus:
var toc = $("#toc").tocify({ selectors: "h2, h3, h4, h5" }).data("toc-tocify");
The generated menu will incorrectly nest the second Depth 3 as a sibling to Depth 4, rather than as a sibling to Depth 3.
I believe in the unminised code the bug is on line 411, but I don't know how to fix it.
The text was updated successfully, but these errors were encountered:
Actually, the headers need no jump a level... this also exhibits the bug:
<h1>Depth 1</h1> <h2>Depth 2</h2> <h3>Depth 3</h3> <h4>Depth 4</h4> <h5>Depth 5</h5> <h4>Depth 4</h4> <h3>Depth 3</h3> <h2>Depth 2</h2>
Maybe it's just having 4 header levels in the selector.
Sorry, something went wrong.
This should now be fixed in the latest release!
gfranko
No branches or pull requests
For the given HTML:
And ToCify configured thus:
The generated menu will incorrectly nest the second Depth 3 as a sibling to Depth 4, rather than as a sibling to Depth 3.
I believe in the unminised code the bug is on line 411, but I don't know how to fix it.
The text was updated successfully, but these errors were encountered: