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 f4062eb commit 3ba931cCopy full SHA for 3ba931c
plugins/rehype/heading-slugs.ts
@@ -28,10 +28,10 @@ export default function () {
28
const text = element.children.at(-2) as MdxTextExpression;
29
text.value = text.value.trimEnd();
30
element.children.with(-2, text);
31
- } else {
32
- if (!element.properties.id) {
33
- element.properties.id = slugs.slug(toString(element));
34
- }
+ }
+ } else {
+ if (!element.properties.id) {
+ element.properties.id = slugs.slug(toString(element));
35
}
36
37
0 commit comments