argenos / zotero-mdnotes

A Zotero plugin to export item metadata and notes as markdown files
https://argenos.github.io/zotero-mdnotes/
GNU General Public License v3.0
1.34k stars 81 forks source link

Creating links to exact position of pdf annotations with mdnotes #213

Open Astro-Aionia opened 1 year ago

Astro-Aionia commented 1 year ago

I know a few years age people used both zotfile and mdnotes as a workflow. Zotfile could extract annotations and add a hyperlink behind each annotations which link to its exact position in pdf file, and these links were keeped when we create a .md file by mdnotes.

But now zotero has been updated to version 6. A new function called Add notes from annotations has replaced Extract Annotations in zotfile. Now I trie to create md files with mdnotes as the same way, but the hyperlinks to pdf pages didn't appear. If I use Export notes function in Zotero main program, the hyperlinks will be added properly (as shown below).

MD file created by Zotero:

“Switches are basic components of almost any electronic device.” ([Jia et al, 2016, p. 1](zotero://select/library/items/GNS5UBQB)) ([pdf](zotero://open-pdf/library/items/GRF5DKFD?page=1&annotation=DT2KRNGI))

MD file created by mdnotes (no hyperlink)

“Switches are basic components of almost any electronic device.” (Jia et al, 2016, p. 1)

I'm wondering if there are any way to add hyper links by modifying the properties of mdnotes, for example, designing a proper templates. I guess it is possible to add a zotero://open-pdf link just like Zotero main program did, but I don't no how to achieve.