summaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/useHeadingsTree.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/hooks/useHeadingsTree.tsx')
-rw-r--r--src/utils/hooks/useHeadingsTree.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/hooks/useHeadingsTree.tsx b/src/utils/hooks/useHeadingsTree.tsx
index 267e97d..f2be406 100644
--- a/src/utils/hooks/useHeadingsTree.tsx
+++ b/src/utils/hooks/useHeadingsTree.tsx
@@ -11,7 +11,7 @@ const useHeadingsTree = (wrapper: string) => {
useEffect(() => {
const query = depths
- .map((depth) => `${wrapper} > *:not(aside) ${depth}`)
+ .map((depth) => `${wrapper} > *:not(aside, #comments) ${depth}`)
.join(', ');
const result: NodeListOf<HTMLHeadingElement> =
document.querySelectorAll(query);