Skip to content

Fix toc with one element #54

@sasanikolic90

Description

@sasanikolic90

The TOC structure is wrongly built when there is only one heading in the toc scope. I think the second ul tag is not necessary.

toc-one-heading-issue

That is caused by getTopLevel() function, that in this case returns 1 as the top level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions