perf: allow TOC to start at heading 3 (#1512)
This commit is contained in:
parent
74f16623c9
commit
bbbb66b489
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
export function toc() {
|
||||
if (document.querySelector('main h2')) {
|
||||
if (document.querySelector('main h2, main h3')) {
|
||||
// see: https://github.com/tscanlin/tocbot#usage
|
||||
tocbot.init({
|
||||
tocSelector: '#toc',
|
||||
|
|
Loading…
Reference in a new issue