Skip to content

Commit 49e5ca6

Browse files
committed
try to fix the generator
1 parent 727fc3d commit 49e5ca6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

scripts/generateHeadingIDs.js

-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ function addHeaderID(line, slugger) {
3131
if (/\{#[^}]+\}/.test(line)) {
3232
return line;
3333
}
34-
if (/\[[^\]]+\]/.test(line)) {
35-
console.log(line);
36-
}
3734
const headingText = stripLinks(line.slice(line.indexOf(' ')).trim());
3835
const headingLevel = line.slice(0, line.indexOf(' '));
3936
return `${headingLevel} ${headingText} {#${slugger.slug(headingText)}}`;

0 commit comments

Comments
 (0)