Playground

🌰 Seed

A scratch page — a quick reference for how the basic Markdown structures compose, and a live sample to eyeball the site’s styling (tables especially). English-only by design.

Text formatting

Plain text with bold, italic, bold italic, inline code, strikethrough, and an internal link to the digital garden . External links get the ↗ marker, e.g. Hugo .

Headings

Use # through ######. On this site the note title is the <h1>, so bodies start at ##.

Third-level heading

Fourth-level heading

Lists

Unordered:

  • First item
  • Second item
    • Nested item
    • Another nested item
  • Third item

Ordered:

  1. Step one
  2. Step two
  3. Step three

Task list

GitHub-style checkboxes (- [ ] / - [x]), rendered by goldmark’s task-list extension:

  • Something already done
  • Another finished item
  • Still to do
  • One more, not done

Horizontal rule

Three dashes (---) on their own line become a divider:


Blockquote

A blockquote — one line of quiet catalog note. It can span multiple lines and hold inline formatting just like a paragraph.

Callout

The callout shortcode marks a quiet catalog note with a line-icon (pure CSS — no SVG in the body: .callout--<kind>::before masks static/icon-<kind>.svg). The kind is arg 0, default info.

An info callout — use it for an aside the reader can skip: a caveat, a pointer to related material, or a note about how something works. Holds normal inline formatting and links .

A warning callout — a warmer amber surface for something the reader should not miss: a caveat that bites, a gotcha, a “don’t do this”.

A note callout — the quietest, on a neutral-grey surface: a plain remark set a little apart from the running text.

Code block

def compose(md):
    """Fenced code keeps its own monospace box."""
    return "\n".join(md)

Math

Opt-in per page with math: true in the front matter (loads KaTeX only then). Inline math uses \( … \), e.g. Euler’s identity \(e^{i\pi} + 1 = 0\). A display equation uses $$ … $$:

$$ f(x) = \frac{1}{\sigma\sqrt{2\pi}}\, e^{-\frac{(x-\mu)^2}{2\sigma^2}} $$

Images

A plain Markdown image renders at natural size, capped at the content width (CSS max-width:100%). Here a static asset under /img/ (served on both hosts):

The default OG card, 1200×630

Sizing

To actually resize an image (a real smaller file, not just browser scaling) use the img shortcode on a bundle image — one that lives beside the note in media/ — and set width in px:

{{< img src="media/digital-garden.jpeg" width="400" alt="Digital garden tree" >}}
Digital garden tree
width=400 → Hugo resizes to 400 px wide

More knobs: size="600x400 webp q80" (full Hugo spec), class="img-right" (float right), lightbox="true" (click opens the original).

Obsidian-style width in plain Markdown

For the common case (just a width) there’s a shorter way that also renders in the FOAM/Obsidian editor: put |<width> on the alt text of a normal Markdown image. On a bundle image it does a real resize, same as the shortcode:

![Digital garden tree|300](media/digital-garden.jpeg)

Digital garden tree

|300x200 sets both dimensions. On a cross-bundle/static path (e.g. /img/og-default.png) the size falls back to plain attributes (browser scaling); without |<n> the image is untouched (natural size, capped at the content width).

Table — short titles (should NOT wrap)

SymQtyUnitPrice
A3kg4.50
B12pcs0.90
C1box22.00

Table — long titles (1–2 columns SHOULD wrap)

KeyFull descriptive column heading that should wrap onto two linesStatusAnother rather long column title here for good measure
oneshort cell valueokshort
twoa longer cell so the row has some body to itpendinga longer cell here too, to see wrapping in a wide column
threetinydonetiny

Everything at once (composition)

A paragraph can mix a link , code, emphasis, and a footnote-style aside — then hand off to a list, a quote, or a table without any ceremony. That’s the point of Markdown: the structures stack in reading order and the theme gives each one its look.

Footnotes

Standard Markdown footnotes.1 They auto-number, render as a list at the end of the page, and on this site also get a hover tooltip + smooth-scroll.2


  1. Write [^label] in the text and [^label]: definition anywhere in the file (usually the end). Hugo numbers them automatically — the label is only an internal handle. ↩︎

  2. The tooltip and two-way navigation come from footnotes.js — site-wide and zero-config. ↩︎

🌱 All notes in the Digital Garden →