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) {
|
if (isFile && isMarkdownFolder) {
|
||||||
return filePath.replace(markdownFolder, '')
|
return filePath.replace(markdownFolder, '')
|
||||||
.replaceAll('/', '_')
|
.replaceAll('/', '_')
|
||||||
.replaceAll(' ', '%')
|
.replaceAll(' ', '+')
|
||||||
.replaceAll('&', '+')
|
.replaceAll('&', '-')
|
||||||
.replace('.md', '')
|
.replace('.md', '')
|
||||||
} else {
|
} else {
|
||||||
//TODO handle this properly
|
//TODO handle this properly
|
||||||
|
Loading…
Reference in New Issue
Block a user