On this page:
Element
Content
Pre  Content
Pre  Flow
Flow  Block
Part
Part  Decl
Style
Style  Like
Tag
Taglet
Content.to_  s_  exp
Pre  Content.to_  s_  exp
Pre  Flow.to_  s_  exp
Tag.to_  s_  exp
Taglet.to_  s_  exp
8.15.0.2

2.1 Building Blocks🔗ℹ

annotation

Element

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

Content

 

annotation

PreContent

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

PreFlow

A pre-flow is like pre-content, but can also include blocks and #void.

annotation

FlowBlock

A flow block is a generalization of a paragraph.

annotation

Part

A part is a section, perhaps with subsection, or even a whole document.

annotation

PartDecl

A part declaration is created by functions such as section, and they are used by document decoding to construct a tree of parts.

annotation

Style

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

StyleLike

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

Tag

 

annotation

Taglet

annotation

Content.to_s_exp

 

annotation

PreContent.to_s_exp

 

annotation

PreFlow.to_s_exp

 

annotation

Tag.to_s_exp

 

annotation

Taglet.to_s_exp

Converting annotations that produce a value suitable for interoperation with Racket Scribble libraries.