Feature tour
Quick tour of every feature the notes section supports.
This note exists to exercise every feature the notes section supports. See first steps for an introduction to the site.
Math
Inline like and display:
Code
def greet(name: str) -> str: return f"hello, {name}"Quotes
Programs must be written for people to read, and only incidentally for machines to execute. — Hal Abelson
Figures with captions
The alt text below becomes a <figcaption> automatically.
Click the image to open it in a lightbox.
Diagrams as code
sequenceDiagram
participant Client
participant Caddy
participant Waline
Client->>Caddy: GET /notes/foo
Caddy-->>Client: HTML
Client->>Caddy: GET comments.../api/comment
Caddy->>Waline: proxy
Waline-->>Caddy: comments JSON
Caddy-->>Client: comments JSON
Backlinks
This note links to first steps, so that note’s page will list this one under “Mentioned in”.
More headings to trigger the table of contents
The TOC only appears with ≥ 3 h2/h3 headings.
A subheading
The TOC nests h3 entries under h2 entries with a slight indent.
Another subheading
Hover any heading on this page to reveal the # anchor link.