Changelog
Added, removed, breaking: a release log that reads like a diff and looks like a page.
What it shows
Give a changelog its own syntax, where a line's first character says what kind of change it is.
What you learn
Line rules keyed on one character, one shared look with class, group to box a run of lines, a sign drawn from a value, inline rules for tags and links, a word rule for a badge.
Try this
- Add a line starting with + under 2.4.0, and it joins the green lines in that release's card.
- Change
addedin the palette to #7048e8, and every added line turns purple.
Larder release notes
What changed in the shopping-list app, newest first.
2.4.0 30 Oct 2026 LATEST
"Pantry": know what is already in the cupboard.
pantry A pantry list: tick what you have at home, and it drops off the next shop (#512)
lists Share a list with everyone in your household, each person's ticks in their own colour (#498)
scan Scan a barcode to add an item, with the price you paid last time (#503)
lists Items are sorted by the aisle they were in last time (#476)
ui A list opens where you left it
export Export to PDF. Print the list or share it as text instead
api Lists sync item by item. Apps that read whole lists must update by 1 December 2026 (#520)
2.3.1 14 Sep 2026
"Mended": fixes from the first weeks of 2.3.
search Searching for "oat milk" no longer finds every oat and every milk (#481)
scan Barcodes on curved tins scan on the first try (#479)
lists Undo a cleared list for ten seconds after clearing it
2.3.0 26 Aug 2026
"Aisles": a list in the order of the shop.
shops Save a shop's aisles once, and every list follows them (#401)
lists Quantities: "6 eggs" and "500 g flour" keep their numbers when you merge two lists (#423)
ui The compact theme. The list now fits its rows to the window
sync Lists made before 2.0 must be opened once in 2.2 to be upgraded
How it's made
- Every change is one line of plain text. Its first character picks the kind:
+added,-removed,~changed,!breaking. Four line rules give each kind its colour and its sign in the margin. - The
>line under a release heading is its code name. It and the changes after it sharegroup div.cl-card, so each release becomes one card. - A word in brackets, like
(sync), becomes an area tag. A number with a hash, like(#412), becomes a link to the issue. The date in square brackets is a pill, and the word LATEST a badge. - The points in this list start with
*, since-is taken by removed changes.
Try it yourself
- Under 2.4.0, add the line
+ (search) Search inside your saved recipes (#525). It joins the green lines, with an area tag and a link. - Move the word
LATESTfrom 2.4.0 to a new release heading## 2.5.0 [4 Dec 2026]above it, with a>line and a change under it. The badge moves with the word. - In the palette, change
breakingto#c92a2a. Both breaking changes turn red. - Write
? (docs) A new user guideunder 2.3.1. Nothing matches a question mark, so it ends the card as a plain paragraph. Add a ruleline ? _ -> div.change group div.cl-card { --kind: grey; --sign: "?" }and it becomes a fifth kind.
Next: Org-mode notes gives Org's marks the same treatment; Your own notation builds whole notations from rules.
~~~ selfscribe
# Lesson: Give a changelog its own syntax, where a line's first character says what kind of change it is.
# You learn: line rules keyed on one character, one shared look with `class`, `group` to box a run of lines, a sign drawn from a value, inline rules for tags and links, a word rule for a badge.
# Try this: add a line starting with + under 2.4.0, and it joins the green lines in that release's card.
# Try this: change `added` in the palette to #7048e8, and every added line turns purple.
# summary: Added, removed, breaking: a release log that reads like a diff and looks like a page.
# category: syntax
# tags: document, simple, work
# uses: markup
use markdown
set title Changelog
# ---- The kinds of change, each with its colour and its shade for dark pages ----------
palette
added #1f883d dark #57c878
removed #cf222e dark #ff7b72
changed #0969da dark #74a7ff
breaking #bc4c00 dark #ffa657
hair color-mix(in srgb, currentColor 11%, transparent)
# ---- "## 2.4.0 [30 Oct 2026]": a release heading that folds, with its date as a pill ----
line ## _ -> h2.release fold 2 { font-variant-numeric: tabular-nums } as cl-release
inline [_] -> span.date { font: 500 0.46em/1 var(--doc-font-ui); vertical-align: 0.4em; margin-left: 0.7em; padding: 0.5em 0.85em; border-radius: 999px; background: var(--hair); letter-spacing: 0 } as cl-date
# The word LATEST anywhere becomes a green badge.
word LATEST -> span.latest { font: 700 0.4em/1 var(--doc-font-ui); vertical-align: 0.55em; margin-left: 0.5em; padding: 0.5em 0.75em; border-radius: 999px; background: var(--added); color: var(--on-added); letter-spacing: 0.12em } as cl-latest
# ---- "+ text", "- text", "~ text", "! text": one change per line, coloured by kind -------
# All of them, and the "> codename" line, share `group div.cl-card`: a run of them is one
# card, with the codename as its header. One look, `change`, is shared: each rule only
# says its colour (--kind) and its sign (--sign), which is drawn in the margin.
class cl-card { margin: 0 0 2.2em; border-radius: 14px; overflow: hidden; border: 1px solid var(--hair); font-family: var(--doc-font-ui); font-size: 0.93em; line-height: 1.5 }
class change { position: relative; padding: 0.6em 1em 0.6em 2.7em; border-top: 1px solid var(--hair); box-shadow: inset 3px 0 0 var(--kind); background: color-mix(in srgb, var(--kind) 5%, transparent) }
class change::before { content: var(--sign); position: absolute; left: 1.05em; top: 0.55em; font: 700 1.05em/1.4 var(--doc-font-mono); color: var(--kind) }
line > _ -> div.codename group div.cl-card { padding: 0.8em 1em; font-style: italic; background: var(--hair) } as cl-codename
line + _ -> div.change group div.cl-card { --kind: var(--added); --sign: "+" } as cl-added
line - _ -> div.change group div.cl-card { --kind: var(--removed); --sign: "−" } as cl-removed
line ~ _ -> div.change group div.cl-card { --kind: var(--changed); --sign: "~" } as cl-changed
line ! _ -> div.change group div.cl-card { --kind: var(--breaking); --sign: "!"; font-weight: 600 } as cl-breaking
# ---- Inside a change: "(sync)" is an area tag, "(#412)" a link to the issue -------------
# The issue rule is longer, so it wins over the area rule for "(#412)".
inline (_) -> span.area { font: 700 0.72em/1 var(--doc-font-ui); text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3em 0.55em; margin-right: 0.2em; border-radius: 4px; background: var(--hair); vertical-align: 0.12em } as cl-area
inline (#_) -> a.issue href="https://example.com/larder/issues/_1" keep { font-weight: 600; text-decoration: none; white-space: nowrap } as cl-issue
~~~
# Larder release notes
What changed in the shopping-list app, newest first.
## 2.4.0 [30 Oct 2026] LATEST
> "Pantry": know what is already in the cupboard.
+ (pantry) A pantry list: tick what you have at home, and it drops off the next shop (#512)
+ (lists) Share a list with everyone in your household, each person's ticks in their own colour (#498)
+ (scan) Scan a barcode to add an item, with the price you paid last time (#503)
~ (lists) Items are sorted by the aisle they were in last time (#476)
~ (ui) A list opens where you left it
- (export) Export to PDF. Print the list or share it as text instead
! (api) Lists sync item by item. Apps that read whole lists must update by 1 December 2026 (#520)
## 2.3.1 [14 Sep 2026]
> "Mended": fixes from the first weeks of 2.3.
~ (search) Searching for "oat milk" no longer finds every oat and every milk (#481)
~ (scan) Barcodes on curved tins scan on the first try (#479)
+ (lists) Undo a cleared list for ten seconds after clearing it
## 2.3.0 [26 Aug 2026]
> "Aisles": a list in the order of the shop.
+ (shops) Save a shop's aisles once, and every list follows them (#401)
+ (lists) Quantities: "6 eggs" and "500 g flour" keep their numbers when you merge two lists (#423)
- (ui) The compact theme. The list now fits its rows to the window
! (sync) Lists made before 2.0 must be opened once in 2.2 to be upgraded
## How it's made
* Every change is one line of plain text. Its first character picks the kind: `+` added, `-` removed, `~` changed, `!` breaking. Four line rules give each kind its colour and its sign in the margin.
* The `>` line under a release heading is its code name. It and the changes after it share `group div.cl-card`, so each release becomes one card.
* A word in brackets, like `(sync)`, becomes an area tag. A number with a hash, like `(#412)`, becomes a link to the issue. The date in square brackets is a pill, and the word LATEST a badge.
* The points in this list start with `*`, since `-` is taken by removed changes.
## Try it yourself
1. Under 2.4.0, add the line `+ (search) Search inside your saved recipes (#525)`. It joins the green lines, with an area tag and a link.
2. Move the word `LATEST` from 2.4.0 to a new release heading `## 2.5.0 [4 Dec 2026]` above it, with a `>` line and a change under it. The badge moves with the word.
3. In the palette, change `breaking` to `#c92a2a`. Both breaking changes turn red.
4. Write `? (docs) A new user guide` under 2.3.1. Nothing matches a question mark, so it ends the card as a plain paragraph. Add a rule `line ? _ -> div.change group div.cl-card { --kind: grey; --sign: "?" }` and it becomes a fifth kind.
Next: *Org-mode notes* gives Org's marks the same treatment; *Your own notation* builds whole notations from rules.