Skip to content

Commit bbbb66b

Browse files
authored
perf: allow TOC to start at heading 3 (#1512)
1 parent 74f1662 commit bbbb66b

File tree

1 file changed

+1
-1
lines changed
  • _javascript/modules/components

1 file changed

+1
-1
lines changed

_javascript/modules/components/toc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function toc() {
2-
if (document.querySelector('main h2')) {
2+
if (document.querySelector('main h2, main h3')) {
33
// see: https://github.com/tscanlin/tocbot#usage
44
tocbot.init({
55
tocSelector: '#toc',

0 commit comments

Comments
 (0)