remove custom slugger function

This commit is contained in:
Nat Alison
2019-02-06 17:25:24 -08:00
parent 3e49e971d0
commit 3a00259302

View File

@@ -18,13 +18,6 @@ function walk(dir) {
return results;
}
function generateID(text) {
return text
.toLowerCase()
.replace(/\s/g, '-')
.replace(/[^-a-z0-9]/g, '');
}
function addHeaderID(line, slugger) {
// check if we're a header at all
if (!line.startsWith('#')) {