Skip to content

Commit 3a00259

Browse files
committed
remove custom slugger function
1 parent 3e49e97 commit 3a00259

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

scripts/generateHeadingIDs.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ function walk(dir) {
1818
return results;
1919
}
2020

21-
function generateID(text) {
22-
return text
23-
.toLowerCase()
24-
.replace(/\s/g, '-')
25-
.replace(/[^-a-z0-9]/g, '');
26-
}
27-
2821
function addHeaderID(line, slugger) {
2922
// check if we're a header at all
3023
if (!line.startsWith('#')) {

0 commit comments

Comments
 (0)