Skip to content

Instantly share code, notes, and snippets.

@cpbotha
Last active November 2, 2024 18:32
Show Gist options
  • Save cpbotha/18f673cd5d8afcf44aa9e7d7d12cb670 to your computer and use it in GitHub Desktop.
Save cpbotha/18f673cd5d8afcf44aa9e7d7d12cb670 to your computer and use it in GitHub Desktop.
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 2 column 2
---
title: "{{title}}"
{% if date %}year: {{date | format("YYYY")}}{% endif %}
authors: {{authors}}{{directors}}
tags: 
  - zotero 
---

{{ bibliography }}

  • zotero: {{desktopURI}}
  • url: {{url}} {% if pdfLink -%}
  • pdf: {{pdfLink}} {%- endif -%}

{% if abstractNote %}

Abstract

{{ abstractNote }} {% endif %}

Highlights

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

[!cite] {{annotation.annotatedText}} Page {{annotation.page}} {%- if annotation.comment %} {# comment along with highlighted text #}

[!note] {{annotation.comment}} {% endif %} {% else %} {% if annotation.comment %} {# standalone comment, no text! #} [!note] {{annotation.comment}} Page {{annotation.page}} {% endif -%} {% endif -%} {% if annotation.imageRelativePath %} ![[{{annotation.imageRelativePath}}]] {% endif -%} {% endfor %}

Notes

{% persist "notes" %} {% endpersist %}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment