From bbbb66b489a3bf2b878947336fe894e8ea2ae3f5 Mon Sep 17 00:00:00 2001 From: yeonwlee <81205766+yeonwlee@users.noreply.github.com> Date: Tue, 30 Jan 2024 09:22:03 +0900 Subject: [PATCH] perf: allow TOC to start at heading 3 (#1512) --- _javascript/modules/components/toc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_javascript/modules/components/toc.js b/_javascript/modules/components/toc.js index bfb0c00..b397813 100644 --- a/_javascript/modules/components/toc.js +++ b/_javascript/modules/components/toc.js @@ -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',