We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b63fa0f commit 4a01100Copy full SHA for 4a01100
src/components/AnchorHeading.astro
@@ -21,6 +21,9 @@ const slugified = GithubSlug(slug ?? title);
21
const tag = `h${depth}` as "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
22
23
const file = await rehype()
24
+ .data("settings", {
25
+ fragment: true,
26
+ })
27
.use(rehypeAutoLinkHeadings)
28
.process(`<${tag} id=${slugified}>${marked.parseInline(title)}</${tag}>`);
29
0 commit comments