Skip to content

Commit 8d218f1

Browse files
committed
be more lenient about ids
1 parent 3a00259 commit 8d218f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/generateHeadingIDs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function addHeaderID(line, slugger) {
2424
return line;
2525
}
2626
// check if it already has an id
27-
if (/\{#[-A-Za-z0-9]+\}/.test(line)) {
27+
if (/\{#[^}]+\}/.test(line)) {
2828
return line;
2929
}
3030
const headingText = line.slice(line.indexOf(' ')).trim();

0 commit comments

Comments
 (0)