Skip to content

Commit 3ba931c

Browse files
authored
[Docs Site] Fix anchor link headings (#18151)
1 parent f4062eb commit 3ba931c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugins/rehype/heading-slugs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ export default function () {
2828
const text = element.children.at(-2) as MdxTextExpression;
2929
text.value = text.value.trimEnd();
3030
element.children.with(-2, text);
31-
} else {
32-
if (!element.properties.id) {
33-
element.properties.id = slugs.slug(toString(element));
34-
}
31+
}
32+
} else {
33+
if (!element.properties.id) {
34+
element.properties.id = slugs.slug(toString(element));
3535
}
3636
}
3737
}

0 commit comments

Comments
 (0)