Native styles
Most styling comes from shortcuts. A small set of native classes need no shortcut — Pandoc understands them directly, and Keystone honors them without one. This page is the complete list; any other class is rejected at build time.
Text
Wrap a run of text in a bracketed span carrying the class:
| Class | Renders as | Example |
|---|---|---|
.smallcaps |
small caps | [Roman Senate]{.smallcaps} |
.underline (alias .ul) |
underline | [important]{.underline} |
.mark |
highlight | [note this]{.mark} |
Small caps for [names and epigraphs]{.smallcaps}.
An [underlined phrase]{.underline}, or its [.ul alias]{.ul}.
A [highlighted phrase]{.mark} mid-sentence.
All three render in PDF and EPUB (and in DOCX/ODT where the word processor
supports the effect). They each do one specific thing — for a different face,
size, or weight, use the font shortcut instead.
Headings
Two native classes apply to a heading rather than inline text:
| Class | Effect |
|---|---|
.unnumbered |
drop the heading from the numbering sequence |
.unlisted |
drop the heading from the table of contents |
# Preface {.unnumbered}
# Colophon {.unlisted}
The two differ: .unnumbered stays in the contents but loses its number;
.unlisted keeps its number but drops from the contents. See
Manuscript & structure for numbering across
the whole book.