Skip to content

Commit

Permalink
Note HTML & Note Markdown: Add annotation key to all reader links (#3298
Browse files Browse the repository at this point in the history
)
  • Loading branch information
AbeJellinek committed Apr 24, 2024
1 parent b3dd2b4 commit ffb252e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions Note HTML.js
Expand Up @@ -14,7 +14,7 @@
},
"inRepository": true,
"translatorType": 2,
"lastUpdated": "2024-02-13 18:47:05"
"lastUpdated": "2024-04-24 14:50:00"
}

/*
Expand Down Expand Up @@ -103,10 +103,12 @@ function doExport() {
linkText = 'snapshot';
}
else {
openURI += '?page=' + (position.pageIndex + 1)
+ (annotation.annotationKey ? '&annotation=' + annotation.annotationKey : '');
openURI += '?page=' + (position.pageIndex + 1);
linkText = 'pdf';
}
if (annotation.annotationKey) {
openURI += '&annotation=' + annotation.annotationKey;
}

let a = doc.createElement('a');
a.href = openURI;
Expand Down
8 changes: 5 additions & 3 deletions Note Markdown.js
Expand Up @@ -14,7 +14,7 @@
},
"inRepository": true,
"translatorType": 2,
"lastUpdated": "2024-03-19 15:35:00"
"lastUpdated": "2024-04-24 14:50:00"
}

/*
Expand Down Expand Up @@ -1534,10 +1534,12 @@ function convert(doc) {
linkText = 'snapshot';
}
else {
openURI += '?page=' + (position.pageIndex + 1)
+ (annotation.annotationKey ? '&annotation=' + annotation.annotationKey : '');
openURI += '?page=' + (position.pageIndex + 1);
linkText = 'pdf';
}
if (annotation.annotationKey) {
openURI += '&annotation=' + annotation.annotationKey;
}

let a = doc.createElement('a');
a.href = openURI;
Expand Down

0 comments on commit ffb252e

Please sign in to comment.