diff --git a/src/components/AnchorHeading.astro b/src/components/AnchorHeading.astro index 8d9b9849cb0af79..8374cd15596e791 100644 --- a/src/components/AnchorHeading.astro +++ b/src/components/AnchorHeading.astro @@ -21,6 +21,9 @@ const slugified = GithubSlug(slug ?? title); const tag = `h${depth}` as "h1" | "h2" | "h3" | "h4" | "h5" | "h6"; const file = await rehype() + .data("settings", { + fragment: true, + }) .use(rehypeAutoLinkHeadings) .process(`<${tag} id=${slugified}>${marked.parseInline(title)}`);