diff --git a/src/components/widget/TOC.astro b/src/components/widget/TOC.astro index 4fabe9fce..8585a5d8a 100644 --- a/src/components/widget/TOC.astro +++ b/src/components/widget/TOC.astro @@ -51,9 +51,9 @@ const maxLevel = siteConfig.toc.depth; ---
{headings.filter((heading) => heading.depth < minDepth + maxLevel).map((heading) => - + " data-heading={heading.slug}>
} {heading.depth == minDepth + 2 &&
}
-
{removeTailingHash(heading.text)}
)} + +