-
Notifications
You must be signed in to change notification settings - Fork 19
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 is generated out of order #22
Comments
Looks like @JordanShurmer fixed it in https://github.com/JordanShurmer/eleventy-plugin-toc and released the plugin under Maybe let's merge the fixes and keep one ToC plugin? Thank you |
I ended up basically rewriting the whole thing, so mine isn't really much of a Probably far better to submit a new PR against this project adding the proper nesting logic. |
@JordanShurmer I ended up using your I noticed that it was a rewrite, and I like how you structured it. @netmikey I'd suggest to use |
@JordanShurmer Would you mind enabling Github issues on your fork? Cause #21 exists on your rewrite too ;-) |
@alex-okrushko Can you provide a reduced test case, including Eleventy version, templating language, plugin version, etc? I just test with your sample markup in a clean Eleventy install and the TOC was rendered with the headings in the correct order. Thanks! |
Say, I have the following HTML:
The generated ToC puts
cc
h3 into the firsta
group, instead of putting it underc
group:The text was updated successfully, but these errors were encountered: