mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
remove custom slugger function
This commit is contained in:
@@ -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('#')) {
|
||||
|
||||
Reference in New Issue
Block a user