This post is also a note-to-self: the exact steps I follow when a post here should also
go to Substack.
The idea is simple — write once, here, in Obsidian, then push a lightly-cleaned copy
to Substack for anyone who prefers email. No dual-editing, no drift.
The workflow
-
Write the post here as Markdown in
content/posts/, with frontmatter:--- title: My post title description: One-sentence summary (becomes the Substack subtitle) tags: [topic, another] --- -
Run the export helper from the repo root:
./scripts/to-substack.mjs content/posts/my-post.mdThis turns the note into a clean, Substack-friendly Markdown file:
title→ the Substack titledescription→ the subtitle- Obsidian
[[wikilinks]]→ plain text ![[image.png]]embeds → regular image links> [!note]callouts → ordinary blockquotes
-
Paste into Substack — open a new post, switch to their editor, and import the
exported file (or paste the body). Fix up any images you want hosted there, then hit
publish.
That’s it. The canonical version lives here on my server; Substack is just a mirror.
Keep one source of truth
Always edit here first. If a post needs a correction, fix it in the vault and
re-export — don’t tweak it silently inside Substack.
Why not automate it?
Substack has no official API, and the unofficial paths are fragile — a change on their
side and your pipeline breaks. For a handful of long-form posts a month, a 30-second
export beats babysitting a scraper.