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 reported 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 an unnumbered heading from the contents |
# Preface {.unnumbered}
# Colophon {.unnumbered .unlisted}
.unnumbered alone keeps the heading in the contents without a number; adding .unlisted takes it out. PDF ignores
.unlisted without .unnumbered, so it alone draws a warning. DOCX and ODT
list every heading either way. See Manuscript & structure for numbering across the
whole book.