diff --git a/src/main.ts b/src/main.ts index df10295..e9f985e 100644 --- a/src/main.ts +++ b/src/main.ts @@ -92,8 +92,8 @@ export default class NoteSplitterPlugin extends Plugin { let fileName = ""; if (this.settings.useContentAsTitle) { - fileName = escapeInvalidFileNameChars(line); fileName = removeWikiLinkUrl(fileName); + fileName = escapeInvalidFileNameChars(line); fileName = trimForFileName(fileName, ".md"); } else { fileName = `split-note-${Date.now() + i}`;