8.16.0.4
2.1 Building Blocks
annotation | |
Elements are components of a paragraph. The can be individual words,
whole sentences, or londer runs of text, and they can have styling such
as font or size changes.
Element constructors include bold and larger. Most elements are constructed implicitly, however, from content or pre-content in the form of a plain string.
annotation | |
| |
annotation | |
Content is either a ReadableString,
Element, a convertable value, or a list of
Content. Convertable values includes images constructed
via pict.
Pre-content is the same as content, but with the intent that strings will be decoded to change, for example, `` and '' into “ and ”.
annotation | |
A pre-flow is like pre-content, but can also include blocks and
#void.
annotation | |
A flow block is a generalization of a paragraph.
annotation | |
A part is a section, perhaps with subsection, or even a whole document.
annotation | |
A part declaration is created by functions such as section,
and they are used by document decoding to construct a tree of parts.
annotation | |
A style is metadata that is associated with an element or flow block.
It affects rendering in a backend-specific way.
For example, bold creates an element with a style that makes the text bold.
annotation | |
A StyleLike value can be coerced to a Style.
It can be a Style already, a String,
a Symbol, or a List.of(Symbol).
annotation | |
| |
annotation | |
annotation | |
| |
annotation | |
| |
annotation | |
| |
annotation | |
| |
annotation | |
Converting annotations that produce a value suitable for interoperation
with Racket Scribble libraries.