I copied a template to import annotations from zotero and want to modify it so that comments become headers of annotations

What I’m trying to do

My template is 300 lines long - I don’t even know what language it’s written in - but towards the end there are the lines:

{%- if annotation.comment -%}
comment:
{{annotation.comment | nl2br }}{% endif %}

and these lines obviously cause the line: “comment” to appear at the end of the imported annotations and below it my comment from Zotero from the marked part of the pdf.

I now assume that it should be easy to place the text under “comment” at the beginning of the highlighted text, mark it as header and to import all these annotations using the refactor tool.

Can anyone help me? Many thanks in advance!!!

Things I have tried

Tried to understand the template :wink:

Addition:

Now the “heading” is managed by this part of the code:

{%- set calloutHeaders = {
“highlight”: “Highlight”,
“strike”: “Strike Through”,
“underline”: “Underline”,
“note”: “Sticky Note”,
“image”: “Image”
}
-%}
{# lookup callout headers by type of annotation #}
{%- macro calloutHeader(type) -%}
{%- if calloutHeaders[type]-%}
{{calloutHeaders[type]}}
{% else %}
{{Note}}
{%endif%}
{%- endmacro -%}