diff --git a/scripts/convert-siyuan-notes.mjs b/scripts/convert-siyuan-notes.mjs index 9e1ad5c..43b10c4 100644 --- a/scripts/convert-siyuan-notes.mjs +++ b/scripts/convert-siyuan-notes.mjs @@ -87,7 +87,7 @@ function markdownTableToJson(markdownTable = '') { for (let i = indexJson.length - 1; i >= 0; i--) { let item = indexJson[i]; - let oldName = (item['title'] + '.md').replace(/("|:)/g, '_'); + let oldName = (item['title'] + '.md').replace(/[":<>]/g, '_'); let oldPath = join(markdownDir, oldName); let newName = item['slug'] + '.md'; let newPath = join(markdownDir, newName);