Textile
Blog posts in Textile markup, with headings, quotes, footnotes and lists set as a clean article.
What it shows
Rebuild Textile's markup as rules, block signatures and all.
What you learn
Lines picked by a short signature like h2. or bq., a class written in brackets and used as the element's class, marks inside a sentence that only count at word edges, a link with its words first, a footnote's number kept in an attribute and drawn by the CSS.
Try this
- Change "h3. What I changed, in order" to "h2. What I changed, in order", and it grows to a section heading.
A week of dialling in espresso
Seven mornings, one new grinder and a notebook. I changed one thing at a time and wrote every shot down. This is what made the difference.
Weigh everything. Your tongue is a good judge, but a poor scale.
The recipe I ended on
- 18 g of coffee in, 36 g of espresso out
- 28 to 30 seconds from pressing the button
- Water at 93 °C
On the 1st morning the shot ran in 15 27 seconds, once I went two steps finer.1 The grinder now sits at 12, down from 16 out of the box.
What I changed, in order
- Grind: two steps finer each morning, until the shot slowed to 28 seconds
- Dose: from 17 g up to 18 g, which gave a sweeter cup
- Water: from 96 °C down to 93 °C, which took the bitter edge off
Why fresh beans pour slowly
Beans roasted in the last week still give off CO2, which pushes back against the water. Home Espresso, Step by Step has a good chapter on resting beans, and the roaster's own guide says to wait at least five days.
Each step on this grinder moves the burrs about 25 microns.
How it's made
- Each line starts with a short signature that says what it is:
h2.a heading,bq.a quote,#a numbered step. p(byline).is a paragraph with a class. The word in brackets becomes the class, andclass bylinein the rules block gives it its look.- Marks such as
*strong*and_em_work inside a sentence, but only at the edge of a word. [1]after a word and a line that starts withfn1.make a footnote and its note.
Try it yourself
- Change
h3. What I changed, in ordertoh2. What I changed, in order. It grows to a section heading. - Add a line
* Milk: none, so the taste is easy to judgeto the list of changes. It joins the list. - Change
p(lead).top.on the opening paragraph. It shrinks to ordinary text. - Add
fn2. The scale reads to a tenth of a gram.at the end, and put[2]after a word. The mark and the note pair up.
Next: the AsciiDoc lite rulebook writes longer documents, and DokuWiki a page of a wiki.
~~~ selfscribe
# Textile: the classic blog markup with h1. headings and *strong* words. Use it with: use textile
# Lesson: Rebuild Textile's markup as rules, block signatures and all.
# You learn: lines picked by a short signature like h2. or bq., a class written in brackets and used as the element's class, marks inside a sentence that only count at word edges, a link with its words first, a footnote's number kept in an attribute and drawn by the CSS.
# Try this: change "h3. What I changed, in order" to "h2. What I changed, in order", and it grows to a section heading.
# summary: Blog posts in Textile markup, with headings, quotes, footnotes and lists set as a clean article.
# category: syntax
set title Textile
# ---- Colours, each with its shade for dark pages -------------------------------------
palette
accent #9c4221 dark #f4a27a
# ---- h1. to h4. at the start of a line: headings, h1. the biggest -----------------------
line h1. _ -> h1 fold 1
line h2. _ -> h2 fold 2
line h3. _ -> h3 fold 3
line h4. _ -> h4 fold 4
# ---- p. a paragraph, p(name). a paragraph with a class, bq. a quote, fn1. a footnote -----
line p. _ -> p
line p(_). _ -> p class=_1 _2
class byline { margin: -0.5em 0 1.8em; font: 0.85em/1.4 var(--doc-font-ui); letter-spacing: 0.02em; opacity: 0.7 }
class lead { font-size: 1.18em; line-height: 1.55 }
line bq. _ -> blockquote { margin: 1.4em 0; padding: 0.2em 0 0.2em 1em; border-left: 3px solid var(--accent); font-size: 1.2em; font-style: italic } as tx-quote
# The footnote's number goes into an attribute, and the CSS writes it before the note.
line fn_. _ -> p.footnote data-n=_1 _2 { font-size: 0.85em; opacity: 0.8 } as tx-footnote
class footnote::before { content: attr(data-n); margin-right: 0.5em; font-size: 0.8em; vertical-align: 0.4em; color: var(--accent) }
# ---- Lists: "* " a point, "# " a numbered step ----------------------------------------
line * _ -> li group ul nest
line # _ -> li group ol nest
# ---- Marks inside a sentence: *strong* _em_ -deleted- +inserted+ @code@ ----------------
# bound: a mark only counts at the edge of a word, so a word like half-hearted keeps its hyphen.
inline *_* -> strong bound
inline \__\_ -> em bound
inline -_- -> del bound
inline +_+ -> ins bound { text-decoration-color: var(--accent) } as tx-ins
inline @_@ -> code verbatim
# ---- ^up^ and ~down~ for raised and lowered text; ??Title?? for the name of a work ------
inline ^_^ -> sup
inline ~_~ -> sub
inline ??_?? -> cite
# ---- ["words":address] a link; [1] a footnote mark -----------------------------------
inline ["_":_] -> a href=_2 _1
inline [_] -> sup.fnref { font-size: 0.7em; color: var(--accent) } as tx-fnref
~~~
h1. A week of dialling in espresso
p(byline). By Inès Moreau, 14 March 2026, filed under Coffee at home
p(lead). Seven mornings, one new grinder and a notebook. I changed _one_ thing at a time and wrote every shot down. This is what made the difference.
bq. Weigh everything. Your tongue is a good judge, but a poor scale.
h2. The recipe I ended on
# 18 g of coffee in, 36 g of espresso out
# 28 to 30 seconds from pressing the button
# Water at 93 °C
On the 1^st^ morning the shot ran in -15- +27+ seconds, once I went two steps finer.[1] The grinder now sits at @12@, down from @16@ out of the box.
h3. What I changed, in order
* Grind: two steps finer each morning, until the shot slowed to 28 seconds
* Dose: from 17 g up to *18 g*, which gave a sweeter cup
* Water: from 96 °C down to 93 °C, which took the bitter edge off
h4. Why fresh beans pour slowly
Beans roasted in the last week still give off CO~2~, which pushes back against the water. ??Home Espresso, Step by Step?? has a good chapter on resting beans, and the ["roaster's own guide":https://example.com/resting] says to wait at least five days.
fn1. Each step on this grinder moves the burrs about 25 microns.
h2. How it's made
* Each line starts with a short signature that says what it is: @h2.@ a heading, @bq.@ a quote, @#@ a numbered step.
* @p(byline).@ is a paragraph with a class. The word in brackets becomes the class, and @class byline@ in the rules block gives it its look.
* Marks such as @*strong*@ and @_em_@ work inside a sentence, but only at the edge of a word.
* @[1]@ after a word and a line that starts with @fn1.@ make a footnote and its note.
h2. Try it yourself
# Change @h3. What I changed, in order@ to @h2. What I changed, in order@. It grows to a section heading.
# Add a line @* Milk: none, so the taste is easy to judge@ to the list of changes. It joins the list.
# Change @p(lead).@ to @p.@ on the opening paragraph. It shrinks to ordinary text.
# Add @fn2. The scale reads to a tenth of a gram.@ at the end, and put @[2]@ after a word. The mark and the note pair up.
*Next:* the _AsciiDoc lite_ rulebook writes longer documents, and _DokuWiki_ a page of a wiki.