Title:: {{title}} URL: {{url}} Zotero Link: {{pdfZoteroLink}}

{%- set zoteroColors = { “#2ea8e5”: “blue”, “#5fb236”: “green”, “#a28ae5”: “purple”, “#ff6666”: “red”, “#ffd400”: “yellow”, “#f19837”: “orange”, “#aaaaaa”: “grey”, “#e56eee”: “magenta” } -%}

{%- set colorLabels = { “blue”: “Blue 🔵”, “green”: “Green ✅”, “purple”: “Purple 💜”, “red”: “Red ❌ Important”, “yellow”: “Yellow ⭐ Key Finding”, “orange”: “Orange 🍊”, “grey”: “Grey”, “magenta”: “Magenta 💗” } -%}

{%- macro calloutHeader(type) -%} {%- switch type -%} {%- case “highlight” -%} Highlight {%- case “image” -%} Image {%- default -%} Note {%- endswitch -%} {%- endmacro -%}

{%- set annotations = annotations | filterby(“date”, “dateafter”, lastImportDate) -%} {%- for annot in annotations -%} {%- if annot.color in zoteroColors -%} {%- set customColor = zoteroColors[annot.color] -%} {%- elif annot.colorCategory|lower in colorLabels -%} {%- set customColor = annot.colorCategory|lower -%} {%- else -%} {%- set customColor = “grey” -%} {%- endif -%}

[!quote]+ {{colorLabels[customColor]}} {{calloutHeader(annot.type)}} Page {{annot.page}} {%- if annot.annotatedText %} {{annot.annotatedText}}{% if annot.hashTags %} {{annot.hashTags}}{% endif %} {%- endif %} {%- if annot.imageRelativePath %} ![[{{annot.imageRelativePath}}]] {%- endif %} {%- if annot.ocrText %} {{annot.ocrText}} {%- endif %} {%- if annot.comment %}

  • {{annot.comment}} {%- endif %} ^annotation-{{loop.index}}

{% endfor -%}