fix file path characters bug

This commit is contained in:
Triston Armstrong 2023-12-23 23:02:08 -06:00
parent 68f3643a5f
commit f8298e7930

View File

@ -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