Skip to content

Instantly share code, notes, and snippets.

@eleanorkonik
Last active October 12, 2025 20:45
Show Gist options
  • Save eleanorkonik/1f0586fe13d98f1dbf18ec72b00bf37d to your computer and use it in GitHub Desktop.
Save eleanorkonik/1f0586fe13d98f1dbf18ec72b00bf37d to your computer and use it in GitHub Desktop.
Eleanor's Readwise Settings

File name

{{title|replace("#","")|replace("?","")|replace(".","")|replace(""","")|replace(""","")|replace("'","")|replace("'","")|truncate(127)}} by {{author|truncate(120)}} - Notes

I do this so that weird characters or overly-long file names don't break dropbox or git, tho Readwise now natively sanitizes things.

Page metadata

{% if document_tags %}> [!info]- Metadata →
> - Tags: {% for tag in document_tags %}#{{tag}} {% endfor %} {%endif %}
{% if summary -%}> [!summary]
> {{summary}}{% endif %}
{% if document_note -%}> [!note]
> {{document_note}} {% endif %}

Highlights Header

{% if is_new_page %}## Highlights
{% elif has_new_highlights -%}
## New highlights added {{date|date('F j, Y')}} at {{time}}
{% endif -%}

Highlight

### {% if highlight_location != "View Highlight" and highlight_location != "View Tweet" %}{{highlight_location}}{% else %}id{{highlight_id}}{% endif %}

> {{ highlight_text }}

{% if highlight_note %} {{ highlight_note }} {% endif %}
{% if highlight_location and highlight_location_url %}* [{{highlight_location}}]({{highlight_location_url}}){% elif highlight_location %}* ({{highlight_location}}){% endif %}
{% if highlight_tags %}* {% for tag in highlight_tags %}#{{tag}} {% endfor %} {%endif %} 

Full Document Text Link

> [!cite]- See full document content →
> ![[{{full_document_text_path}}]]

YAML Header

alias:
post_id: "{{book_id}}"
title: "{{full_title}}"
subtitle:
source: 
    - "[[{{author}}]]"
    - "{{source}}"
purpose:
last_updated: {{last_highlighted_date|date('Y-m-d')}}
post_date: {{published_date|date('Y-m-d')}}
live_url: {{url}}
featured_img:
related:

Note: The above is designed to closely match the default Substack export format, and I don't necessarily recommend it to anyone who doesn't care about exporting a decade of articles from Substack in an Obsidian-bases compatible format that meshes well with their document archive from Readwise.

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