docsifyjs / docsify

🃏 A magical documentation site generator.
https://docsify.js.org
MIT License
27.57k stars 5.67k forks source link

Sidebar category does not show the first subtitle sometimes #1556

Closed ShXDler closed 3 years ago

ShXDler commented 3 years ago

Bug Report

Steps to reproduce

Use the docsify-sidebar-collapse plugin.

What is current behaviour

图片 The sidebar category does not show the first subtitle correctly in some articles. As the picture shows, '1.文章简介' as the first level title is supposed to appear. However, the sidebar only shows the subtitles under '1.文章简介', e.g. '1.1 xxx' and '1.2 xxx'. I am not sure whether it is due to my inappropriate operations or a bug.

What is the expected behaviour

The first subtitle is correctly shown.

Other relevant information

Please create a reproducible sandbox

Edit 307qqv236

Mention the docsify version in which this bug was not present (if any)

sy-records commented 3 years ago

You should go to the docsify-sidebar-collapse repository and submit the issue