{{title|replace(',','_')|replace(':','_')|replace('/','_')|replace('\n','_')}}Make sure to change "Resources/Research/Readwise" to where Readwise stores your files!
{% raw %}
> [!IMPORTANT] Next highlight
> ```dataview
> TASK FROM "Resources/Research/Readwise"
> WHERE !completed
> AND file.name = this.file.name
> LIMIT 1
> ```
{% endraw %}
{% if image_url -%}

{% endif -%}
{% if is_new_page %}
## Highlights
{% elif has_new_highlights -%}
## New highlights added {{date|date('F j, Y')}} at {{time}}
{% endif -%}#### {{ highlight_text | replace('\n', ' ') | truncate(200,false,'') }}
- [ ] {{ highlight_text | replace('\n', ' ') }}{% if highlight_location and highlight_location_url %}
- [{{highlight_location}}]({{highlight_location_url}}){% elif highlight_location %}
- {{highlight_location}}{% endif %}{% if highlight_tags %}
- Tags: {% for tag in highlight_tags %}#readwise/{{tag}} {% endfor %}{% endif %}{% if highlight_note %}
- My note: {{ highlight_note | replace('\n', '') }}{% endif %}author: {% if author %}"[[{{author}}]]"{% endif %}
title: "{{full_title}}"
category: {{category}}
highlighted_date: {{last_highlighted_date|date('Y-m-d')}}
published_date: {{published_date|date('Y-m-d')}}
cover_image: {{image_url}}
{% if document_note -%}
document_note: "{{document_note}}"
{% endif -%}
tags: [literature/unfiled {% if document_tags -%},{% for tag in document_tags %}{{tag}}, {% endfor %}{% endif -%}]
up: "[[My Commonplace Book]]"
{% if summary -%}
summary: {{summary|replace('\n',' ')}}
{% endif -%}
{% if url -%}
url: {{url}}
{% endif -%}
If the
{{summary}}contains a new line character (as the "Getting Started with Reader" article did) the front matter will be broken because the indentation of the new paragraph puts the text outside the expected indentation of the text block. Updating the template to include a replace fixes the issue:{{summary|replace('\n','\n ')}}