I can now write diagrams as text right inside a post. Here’s my learning loop:

flowchart LR
  A[Pick a sample] --> B[Take it apart]
  B --> C[Rebuild from scratch]
  C --> D{Stuck?}
  D -- yes --> B
  D -- no --> E[Write a post]

And how a page gets from my editor to your browser:

sequenceDiagram
  participant Me
  participant Astro
  participant Cloudflare
  Me->>Astro: write Markdown
  Astro->>Cloudflare: static HTML
  Cloudflare-->>Me: live site

To make one, write a code block with the language set to mermaid.