Feature tour

· 1 min read · 197 words

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 E=mc2E = mc^2 and display:

0ex2dx=π2\int_0^\infty e^{-x^2}\, dx = \frac{\sqrt{\pi}}{2}

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.

A sample diagram demonstrating image captions and lightbox zoom.
A sample diagram demonstrating image captions and lightbox zoom.

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

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.

← All notes