1 Answers

看了下最高层级 <h2> 标题只有一个,我们要求最高层级 >= 2 才会生成目录。

现在改成只有 h1 和 h2 才添加到目录了吗?

至少两个 h1 或两个 h2 或两个 h3 才会生成目录