fix file path characters bug
This commit is contained in:
parent
68f3643a5f
commit
f8298e7930
@ -95,8 +95,8 @@ export function toSlug(filePath) {
|
||||
if (isFile && isMarkdownFolder) {
|
||||
return filePath.replace(markdownFolder, '')
|
||||
.replaceAll('/', '_')
|
||||
.replaceAll(' ', '%')
|
||||
.replaceAll('&', '+')
|
||||
.replaceAll(' ', '+')
|
||||
.replaceAll('&', '-')
|
||||
.replace('.md', '')
|
||||
} else {
|
||||
//TODO handle this properly
|
||||
|
Loading…
Reference in New Issue
Block a user