Hi everyone, I hope you are well.
I am posting here in the off chance that one of you will find what will likely be a pretty simple solution for a couple of problems I cannot solve (I have no programming experience and have been trying multiple things but inevitably nothing happens).
I have adopted @mgmeyers template but there are two settings that I have no idea how to edit, namely:
-
I love it that I can get the highlights for a text but I was hoping to get them in a callout format, i.e., the blue highlight would be in a “box” and be titled “Relevant” and the red highlights would show in a separate box, titles “Irrelevant”. I tried using other templates provided here but the best I got was the boxes but without any colour to them (not like some of the images in the thread above).
-
The second issue is that when there is a comment and a highlight, they show without any paragraph between them, almost glued to one another. I was unable to find out how to implement spacing.
If anyone has the ability to help, I would appreciate it. Below is the template I am using (I just copy pasted it here, I hope that is ok? Thank you to all of you that have contributed with templates, this is a real productivity gain 
Title: [{% if shortTitle %}“{{shortTitle | safe}}”{% else %}“{{title | safe}}”{% endif %}]
[!info] File Creation and subsequent modification
Note creation date: <% tp.file.creation_date(“dddd Do MMMM YYYY HH:mm:ss”) %>
Last modification date: <% tp.file.last_modified_date(“dddd Do MMMM YYYY HH:mm:ss”) %>
{%- macro colorValueToName(color) -%}
{%- switch color -%}
{%- case “#ffff7f” -%}
Relevant / important
{%- case “#ff7f7f” -%}
Disagree
{%- case “#ffbf7f” -%}
Questions / confusion
{%- case “#7fff7f” -%}
Agree
{%- case “#7fffff” -%}
Relevant to current task
{%- case “#ff7fff” -%}
TODO / follow up
{%- case “#bf7fbf” -%}
Definitions / concepts
{%- default -%}
Interesting but not relevant
{%- endswitch -%}
{%- endmacro -%}
{%- macro calloutHeader(type) -%}
{%- switch type -%}
{%- case “highlight” -%}
Highlight
{%- case “strike” -%}
Strikethrough
{%- case “underline” -%}
Underline
{%- case “image” -%}
Image
{%- default -%}
Note
{%- endswitch -%}
{%- endmacro %}
[!Descriptive Information]
-
Cite Key: [[@{{citekey}}]]
{%- for attachment in attachments | filterby(“path”, “endswith”, “.pdf”) %}
-
Link: [{{attachment.title}}](file://{{attachment.path | replace(" ", “%20”)}})
{%- endfor -%}
{%- if abstractNote %}
-
Abstract: {{abstractNote}}
{%- endif -%}
{%- if bibliography %}
-
Bibliography: {{bibliography}}
{%- endif %}
{%- if hashTags %}
-
Tags: {{hashTags}}
{%- endif %}
Annotations
{% persist “annotations” %}
{% set annots = annotations | filterby(“date”, “dateafter”, lastImportDate) -%}
{% if annots.length > 0 %}
{% for annot in annots -%}
{#-Annotations that start with #, to be turned into markdown style section headers-#}
{% if annot.annotatedText and “#” in annot.annotatedText %}
{{annot.annotatedText|nl2br|upper|title}}
{#-Regular text annotations w/ page number and page link-#}
{%- elif annot.annotatedText %}
{#-Image annotations-#}
{%- if annot.imageRelativePath %}
![[{{annot.imageRelativePath}}]]
{%- endif %}
{#-comment annotations-#}
{%- if annot.comment %}
[!annot] Comment
{{annot.comment | nl2br}}
{%- endif %}
{%- endfor %}
{%- endif -%}
{%- endpersist -%}