Home

Page

This is a styled block type used in Stencila Schema for explicit page boundaries.

It extends StyledBlock so page-oriented content and layout can be represented directly in the document model when pagination matters, such as for print or paged publishing workflows.

Key properties are inherited from StyledBlock, with semantics centered on page-level layout and styling boundaries.

This type is marked as unstable and is subject to change.

Properties

The Page type has these properties:

NameDescriptionTypeInherited from
contentThe content within the styled blockBlock*StyledBlock
codeThe code of the equation in the styleLanguage.CordStyled
styleLanguageThe language used for the style specification e.g. css, twStringStyled
authorsThe authors of the code and content in the styled node.Author*Styled
provenanceA summary of the provenance of the code and content in the styed node.ProvenanceCount*Styled
compilationDigestA digest of the code and styleLanguage.CompilationDigestStyled
compilationMessagesMessages generated while parsing and transpiling the style.CompilationMessage*Styled
cssA Cascading Style Sheet (CSS) transpiled from the code property.StringStyled
classListA space separated list of class names associated with the node.StringStyled
idThe identifier for this item.StringEntity

Related

The Page type is related to these types:

Bindings

The Page type is represented in:

Testing

During property-based (a.k.a generative) testing, the properties of the Page type are generated using the following strategies.

PropertyComplexityDescriptionStrategy
codeMin+Generate a simple fixed string of code.Cord::from("code")
Low+Generate a random string of up to 10 alphanumeric & space characters (trimmed). Avoid keywords used to identify other node types.r"[a-zA-Z0-9 ]{1,10}".prop_filter("No keywords", |code| !["include", "call", "if", "ifblock", "for"].contains(&code.trim())).prop_map(|code| Cord::from(code.trim()))
High+Generate a random string of up to 100 characters (excluding control characters).r"[^\p{C}]{1,100}".prop_map(Cord::from)
MaxGenerate an arbitrary string.String::arbitrary().prop_map(Cord::from)
styleLanguageMin+Do not generate a style language.None
High+Generate a random string of up to 10 alphanumeric characters.option::of(r"[a-zA-Z0-9]{1,10}")
MaxGenerate an arbitrary string.option::of(String::arbitrary())

This documentation was generated from Page.yaml by docs_types.rs.

© 2026 Stencila