-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Presence of HTML tags inside extracted annotations (Zotero 6) #185
Comments
That is the way Zotero 6 exports the annotations from their DB. The exports from mdnotes explicitly allow for spans, since they can be used to format exported annotations if you use an external PDF viewer and the Zotfile workflow. Could you try to modify your note template in Zotero? I'm not sure this will remove the span, but it's worth a try. |
Hello, @argenos ! Thanks a lot for your answer, and for the wonder that is MDnotes in general 😄 ! The reason makes sense, and tweaking the note templates of Zotero looks like a great idea. However, I'm not able to find anywhere where it would be possible to affect the presence of these If somebody finds a way to change that, I'll be all in ! |
@kcudding I recommend switching to Zotero Integrator if this is an issue. As I mentioned above, it's unlikely I will address the issue any time soon, since it comes from the way Zotero exports their internal annotations to HTML. If you wish, you can play around with the templates used by Zotero 6 to do that export, or open a PR to fix this. |
It is possible to strip the html tags from text. This will remove the link to the page of the pdf in Zotero. A link to the pdf can be added back in using Zutilo "copy select item links." However it is quicker to export the note using both Zotero export and mdnotes, then copy the tags, related, and anything else you want from the mdnotes exported file into the Zotero exported file. If you use the unique ID method to make links between notes e.g: If someone with coding knowledge can think of a way of automating any or all of this I will buy them a 🍺 |
I'm a first-time user to Zotero and mdnotes, trying to come up with a workflow so that my annotations import well into Obsidian. I'm naturally using Zotero 6 since I'm new. Right now, it looks like using Zotero 6's So what is OP trying to do that built-in Zotero 6 functionality doesn't give you? What's missing? |
Nice catch, @huyz ! Indeed, it seems that the problem is not present when using the built-in To answer your question, it's just a question of practicality; |
The deal killer for me is that while I can use the native Zotero export to .md to produce a note file from the annotations folder that contains links but which is incorrectly named." You end up with a file labelled Annotations, which overwrites the previous file unless you have renamed it, and which is not identifiable. That's not just a convenience issue unless you only use the feature occasionally. I and others have raised the file name issue with Zotero, but no motion yet. |
One workaround is to change the |
mdnotes renames to the better bibtex reference key automatically, which I found invaluable for organization. Doing it manually you have to get the key (you can set up for command c - shift to do this) and then paste in. So instead of processing annotations to a .md with one click as before, its now 4 actions to get the same job done. Unless someone has new ideas about how to automate? As far as I know there is still no option to automatically set the title field in the Zotero generated annotation note. |
I think I found a solution for this issue:
into
This url can be used to create a link using the content in the
I have not tried it in zotero-mdnotes yet but I have tested it. |
Describe the bug
When extracting annotations from a PDF with Zotero 6's
Add note from annotations
feature, and exporting the resulting note with theExport to Markdown
function of MDNotes, the resulting markdown file contains HTML code, making it difficult to read and edit sometimes.To Reproduce
Steps to reproduce the behavior:
Add note from annotations
in ZoteroExport to Markdown
option from MDNotesExpected behavior
The resulting markdown file should not contain HTML tags, and should remain in markdown format.
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: