Autoflow rule: title
Priority 10 · First slide gets a centered #[fit] title with subtitle below.
When it fires
Section titled “When it fires”- The slide is slide 0 of the deck (guard:
info.index === 0) - The first paragraph is a single line, ≤6 words, plain text
- There’s at least one more paragraph below it
- The total subtitle words are greater than the title words (otherwise it’s a statement, not title+subtitle)
What it does
Section titled “What it does”- Wraps the title line in
#[fit] - Adds
[.heading-align: center] - Result: a centered, fit-sized title with a subtitle below
Live fixture
Section titled “Live fixture”This is the exact deck used by the test suite:
Source
Section titled “Source”footer: autoflow rules · titleslidenumbers: trueautoflow: truetheme: nordicscheme: 1
<!--RULE: title (priority 10)TRIGGERS WHEN: - First slide of the deck (guard: index === 0) - First paragraph is a single line, ≤6 words, plain text - There's at least one more paragraph below it - The total subtitle words are GREATER than the title wordsEFFECT: - Wraps the title line in #[fit] - Adds [.heading-align: center] - The result is a centered, fit-sized title with a subtitle below-->
The Middle Path
Between speed and craft.
A talk about how to know when to ship and when to refactor.
---
# Just a regular slide
This second slide proves the title rule only fires on slide 0.