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.