TOC refinements

This commit is contained in:
2026-05-07 18:56:00 +02:00
parent cc264daa79
commit a18f991c0b
4 changed files with 21 additions and 15 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
var content = document.querySelector("main");
if (!content) return;
var headings = content.querySelectorAll("h1, h2, h3");
var headings = content.querySelectorAll("h2, h3, h4");
if (headings.length < 2) return;
var nav = document.createElement("nav");