Skip to content

Commit

Permalink
Fixed encoding bug
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanopagliari committed Jul 19, 2022
1 parent 5d38302 commit 5c59d9f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Binary file modified .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "bibnotes",
"name": "BibNotes Formatter",
"version": "0.9.201",
"version": "0.9.203",
"minAppVersion": "0.12.0",
"description": "Plugin to import and format annotations from Zotero.",
"author": "Stefano Pagliari",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bibnotes",
"version": "0.9.201",
"version": "0.9.203",
"description": "Plugin to export and format annotations from Zotero into Obsidian",
"main": "main.js",
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,11 @@ export function createLocalFileLink(reference: Reference) {
const selectedfile: string =
"[" +
reference.attachments[attachmentindex].title +
"](file://" + // added an extra "/" to make it work on Linux
encodeURI(reference.attachments[attachmentindex].path) +
"](file:///" + // added an extra "/" to make it work on Linux
encodeURI(reference.attachments[attachmentindex].path.replaceAll(" ", " ")) +
")"; //select the author



filesList.push(selectedfile);
}
//turn the array into a string
Expand Down

0 comments on commit 5c59d9f

Please sign in to comment.