Open alex-okrushko opened 3 years ago
Looks like @JordanShurmer fixed it in https://github.com/JordanShurmer/eleventy-plugin-toc and released the plugin under eleventy-plugin-nesting-toc
.
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 fork
of this anymore. Plus things have changed quite a bit since my initial fork. So.. I'm not sure merging my fork would be feasible nor desirable .
Probably far better to submit a new PR against this project adding the proper nesting logic.
@JordanShurmer I ended up using your eleventy-plugin-nesting-toc
: https://github.com/ts-dev-inc/ts.dev
I noticed that it was a rewrite, and I like how you structured it.
@netmikey I'd suggest to use eleventy-plugin-nesting-toc
as well.
@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: