From 0fbbf781c5f52d99e451b7b360485e180dbe4549 Mon Sep 17 00:00:00 2001 From: danpros Date: Sat, 16 Aug 2025 16:45:31 +0700 Subject: [PATCH] Update toc.js --- themes/doks/js/toc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/doks/js/toc.js b/themes/doks/js/toc.js index d9dd498..ac519f2 100644 --- a/themes/doks/js/toc.js +++ b/themes/doks/js/toc.js @@ -28,7 +28,7 @@ function htmlTableOfContents (id) { var documentRef = document; var toc = documentRef.getElementById('toc'); - var headings = [].slice.call(documentRef.body.querySelectorAll('#content h1, #content h2, #content h3, #content h4, #content h5, #content h6')); + var headings = [].slice.call(documentRef.body.querySelectorAll('#content h2, #content h3, #content h4, #content h5, #content h6')); headings.forEach(function (heading, index) { heading.setAttribute('id', heading.textContent.replace(/\s+/g, '-').toLowerCase() + id);