Closed flumonion closed 3 years ago
@@khos2ow implemented the maxMenuDepth
setting. It looked correct to me at that time, but I have not tested it extensively.
I just tested it out and it's basically working as expected 99% of times except when the last h1
of the TOC contains any children (or grandchildren for that matter). That's the reason in your Example 3 everything is there except h-1-2
(the same for other examples as well).
I'll send a PR soon.
Hi,
I am a bit confused as to how the TOC rendering works. Should not all headings be rendered to TOC up to depth
maxMenuDepth
?Here are some examples.
my config.toml has
Example 1:
Renders (only showing relevant bits of html)
Example 2:
Renders
Example 3.
Renders
Or, am I misunderstanding the feature...
It looks to me as if level 2 is not rendered in all cases.
Same applies if I set
By the way, thanks for the great theme!