Collapse on the ToC does not work below the first level
alemsabic opened this issue · comments
In the documentation it's written: "As mentioned above, Collapse can be used in a nested manner, so you can have your desired level of depth in your ToC".
When I use the example that follows ...
:Collapse label=Stuff
:Collapse label=Spec
Spec Overview
Spec of This
... this is the result:
For any quoted component (including Collapse
), you need a newline between the first line (which specifies the component type and its parameters) and the content. In your case, this is your markdown, where the newline is missing:
[Home](/)
> :Collapse label=Stuff
>
> [Overview](/some-folder/overview)
> > :Collapse label=Spec
> > [Spec Overview](/some-folder/spec/overview)
> > [Spec of This](/some-folder/spec/this)
And this is the correct version:
[Home](/)
> :Collapse label=Stuff
>
> [Overview](/some-folder/overview)
> > :Collapse label=Spec
> >
> > [Spec Overview](/some-folder/spec/overview)
> > [Spec of This](/some-folder/spec/this)
@alemsabic if this 👆fixes your issue, please tell me so that I would convert this issue to a discussion thread under Q&A.
@loreanvictor Hi Eugene, yeah, it does. Thanks for the fast answer. So it's an error in the documentation.
So it's an error in the documentation.
Yes it is, thanks for mentioning.