fix: export md image path bug

This commit is contained in:
xiangyu 2022-11-25 15:52:48 +08:00
parent 9df0c37719
commit 3a75551360

View File

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