2 min read

Images & diagrams · figures and visuals

Table of Contents

Images in public/ are served from the root, so public/y-wing.jpeg is just /y-wing.jpeg. The prose styles center images automatically.

Basic image

Always write real alt text — it’s read aloud and shown when the image fails.

A y-wing starfighter

Captioned figure

Use a <figure> when the image needs a caption:

Placeholder banner image
Fig 1. A caption explaining what the reader is looking at.

Side-by-side

Before After

External image

NASA Earth image

ASCII / box diagrams

No plugin needed — a fenced block keeps the spacing exact:

   ┌──────────┐      ┌──────────┐      ┌──────────┐
   │  Client  │ ───▶ │   API    │ ───▶ │    DB    │
   └──────────┘      └──────────┘      └──────────┘
        ▲                  │
        └──── response ────┘

On Mermaid diagrams: this site doesn’t have a Mermaid integration wired up, so ```mermaid blocks render as plain code. Either add the integration, paste a pre-rendered SVG/PNG into public/, or stick with ASCII for quick sketches.