Skip to content

Collapse on the ToC does not work below the first level #99

Description

@alemsabic

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 ...

Home

:Collapse label=Stuff

Overview

:Collapse label=Spec
Spec Overview
Spec of This

... this is the result:

Screenshot at Feb 12 17-39-50

Activity

  1. loreanvictor commented on Feb 12, 2021

    @loreanvictor
    Contributor

    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)
  2. loreanvictor commented on Feb 12, 2021

    @loreanvictor
    Contributor

    @alemsabic if this 👆fixes your issue, please tell me so that I would convert this issue to a discussion thread under Q&A.

  3. alemsabic commented on Feb 12, 2021

    @alemsabic
    Author

    @loreanvictor Hi Eugene, yeah, it does. Thanks for the fast answer. So it's an error in the documentation.
    Screenshot at Feb 12 18-30-15

  4. added
    documentationImprovements or additions to documentation
    and removed
    questionFurther information is requested
    on Feb 12, 2021
  5. loreanvictor commented on Feb 12, 2021

    @loreanvictor
    Contributor

    So it's an error in the documentation.

    Yes it is, thanks for mentioning.

  6. added a commit that references this issue on Feb 12, 2021
    d9e5867
  7. locked and limited conversation to collaborators on Feb 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions