[ci] format

This commit is contained in:
FredKSchott 2022-07-19 05:23:28 +00:00 committed by fredkbot
parent ba11b33996
commit 91e4ba03da

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;
}
}