What I’m trying to do
I’d like a template for the Zotero Integration Plugin. Ideally it would include all of my highlights and circled images under one heading. Then it would include everything from my notes on the article (using the Better Notes plugin) under a different heading. The twist is that I would like any images clipped and put in the note to also appear.
Things I have tried
At the moment I have the highlights covered with this:
# Annotations
{% for annotation in annotations -%}
{%- if annotation.annotatedText -%}
{{annotation.annotatedText}}”{% if annotation.color %} {{annotation.colorCategory}} {{annotation.type | capitalize}} {% else %} {{annotation.type | capitalize}} {% endif %}[Page {{annotation.page}}](zotero://open-pdf/library/items/{{annotation.attachment.itemKey}}?page={{annotation.page}}&annotation={{annotation.id}})
{%- endif %}
{%- if annotation.imageRelativePath -%}
![[{{annotation.imageRelativePath}}]] {%- endif %}
{% if annotation.comment %}
{{annotation.comment}}
{% endif %}
{% endfor -%}
But I’m having trouble getting images in the note. So far I have this:
# Notes Taken in Zotero
{% for note in notes -%}
{%- set cleaned_note = note.note | replace('<img src="', ' | replace('" />', ')') -%}
{{ cleaned_note }}
---
{% else %}
No notes found.
{% endfor -%}
This sort of works, but it includes links to images instead of the images themselves. It also has an annoying GO TO ANNOTATION link in front of each highlight, which I’d love to get rid of.
Thank you!