cotes2020 / jekyll-theme-chirpy

A minimal, responsive, and feature-rich Jekyll theme for technical writing.
https://chirpy.cotes.page
MIT License
7.36k stars 5.77k forks source link

Headings with numbers makes the TOC on the right panel fail to expand. #774

Closed sirlis closed 1 year ago

sirlis commented 1 year ago

Checklist

Describe the bug

Adding numbers to each level of headings makes the TOC on the right fail to expand.

To Reproduce

Steps to reproduce the behavior:

  1. new a markdown file 111.md and write contents with headings like:

    ## 1. A
    
    contents ....
    
    ## 2. B
    
    contents ....
    
    ### 2.1. BB
    
    contents ....
    
    ### 2.2. BBB
    
    contents ....
    
    ## 3. C
  2. See error

The automatically generated TOC on the right panel won't expand to the 2nd level correctly.

Expected behavior

The TOC expanded as expected.

Screenshots

examples link: http://sirlis.cn/posts/reinforcement-learning-Monte-Carlo/

In fact, almost all posts of the blog cannot experience a auto-expanded TOC.

Environment

Command Version
chrispy latest

Desktop

Smartphone

Additional context

github-actions[bot] commented 1 year ago

:wave: Hi @sirlis,

This issue is being automatically closed because it does not follow the issue template. Please DO NOT open another similar issue, try to edit the current issue according to the template, then it will be reopened automatically.

NichtsHsu commented 1 year ago

See #572 and https://github.com/afeld/bootstrap-toc/issues/64

sirlis commented 1 year ago

See #572 and afeld/bootstrap-toc#64

Thank you.

sirlis commented 1 year ago

Since bootstrap-toc is no longer maintained, I wonder if it is possible for the developer to update Chrispy by using Tocbot.