Skip to content

Commit 188f05d

Browse files
committed
fix closing tag in anchorheading
1 parent d16db1e commit 188f05d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/AnchorHeading.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const tag = `h${depth}` as "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
2222
2323
const file = await rehype()
2424
.use(rehypeAutoLinkHeadings)
25-
.process(`<${tag} id=${slugified}>${marked.parseInline(title)}</${tag}`);
25+
.process(`<${tag} id=${slugified}>${marked.parseInline(title)}</${tag}>`);
2626
2727
const html = file.toString();
2828
---

0 commit comments

Comments
 (0)