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

  1. 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]
    ---
  2. Run the export helper from the repo root:

    ./scripts/to-substack.mjs content/posts/my-post.md

    This turns the note into a clean, Substack-friendly Markdown file:

    • title → the Substack title
    • description → the subtitle
    • Obsidian [[wikilinks]] → plain text
    • ![[image.png]] embeds → regular image links
    • > [!note] callouts → ordinary blockquotes
  3. 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.