[ci] format

This commit is contained in:
RafidMuhymin 2022-07-16 09:47:09 +00:00 committed by fredkbot
parent 8530cce14f
commit 963100fb27

View file

@ -53,11 +53,11 @@ export default function createCollectHeaders() {
node as any
).value = `<${node.tagName} id={${node.properties.id}}>${raw}</${node.tagName}>`;
} else {
let slug = slugger.slug(text);
if (slug.endsWith('-')) slug = slug.slice(0, -1);
node.properties.id = slug;
let slug = slugger.slug(text);
if (slug.endsWith('-')) slug = slug.slice(0, -1);
node.properties.id = slug;
}
}