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() {
|
export function toc() {
|
||||||
if (document.querySelector('main h2')) {
|
if (document.querySelector('main h2, main h3')) {
|
||||||
// see: https://github.com/tscanlin/tocbot#usage
|
// see: https://github.com/tscanlin/tocbot#usage
|
||||||
tocbot.init({
|
tocbot.init({
|
||||||
tocSelector: '#toc',
|
tocSelector: '#toc',
|
||||||
|
|
Loading…
Reference in a new issue