Skip to content

Question about template and new/empty lines #474

Description

@DaitiDay

I am using the following (simplified) template:

## Annotations

{% for annotation in annotations %}
{% if annotation.annotatedText %}

{% if annotation.type == "highlight" %}
{% if annotation.colorCategory == "Yellow" %}

> **HIGHLIGHT**
> {{annotation.annotatedText}} *([[page {{annotation.pageLabel}}](https://github.com/obsidian-community/obsidian-zotero-integration/issues/%7B%7Bannotation.desktopURI%7D%7D)]({{annotation.desktopURI}}))*
{% if annotation.comment %}
> **Annotation**: {{annotation.comment}}
{% endif %}

{% endif %}

{% endif %}

{% endif %}
{% endfor %}

I can put everything on a single line, or I can create two different quoteblocks (as in the snippet above). What I cannot manage to get however is the Annotation: on a new line, but still inside the same quoteblock.
What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions