diff --git a/manifest.json b/manifest.json index 92f9708..0bf8d2f 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "bibnotes", "name": "BibNotes Formatter", - "version": "0.9.205", + "version": "0.9.206", "minAppVersion": "0.12.0", "description": "Plugin to import and format annotations from Zotero.", "author": "Stefano Pagliari", diff --git a/package.json b/package.json index 7929d4d..9cb3fbe 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bibnotes", - "version": "0.9.205", + "version": "0.9.206", "description": "Plugin to export and format annotations from Zotero into Obsidian", "main": "main.js", "scripts": { diff --git a/src/utils.ts b/src/utils.ts index 91f0e86..32df34b 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -364,7 +364,7 @@ export function createLocalFileLink(reference: Reference) { const selectedfile: string = "[" + reference.attachments[attachmentindex].title + - "](file:////" + // added an extra "/" to make it work on Linux + "](file:///" + // added an extra "/" to make it work on Linux encodeURI(reference.attachments[attachmentindex].path.replaceAll(" ", " ")) + ")"; //select the author