From 3a75551360b024f8792821f09092ac4d7332afdb Mon Sep 17 00:00:00 2001 From: xiangyu <3170102889@zju.edu.cn> Date: Fri, 25 Nov 2022 15:52:48 +0800 Subject: [PATCH] fix: export md image path bug --- src/note/noteExportController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/note/noteExportController.ts b/src/note/noteExportController.ts index 87b09cf..678d46e 100644 --- a/src/note/noteExportController.ts +++ b/src/note/noteExportController.ts @@ -198,7 +198,7 @@ class NoteExport extends AddonBase { } this._exportPath = this._Addon.NoteUtils.formatPath( - Zotero.File.pathToFile(filepath).parent.path + "/attachments" + Zotero.File.pathToFile(filepath).path + "/attachments" ); notes = notes.filter((n) => n && n.getNote); @@ -295,7 +295,7 @@ class NoteExport extends AddonBase { async syncNotesToMDFiles(notes: Zotero.Item[], filepath: string) { this._exportPath = this._Addon.NoteUtils.formatPath( - Zotero.File.pathToFile(filepath).parent.path + "/attachments" + Zotero.File.pathToFile(filepath).path + "/attachments" ); // Export every linked note as a markdown file