Home

Raw Block

The content of the block is not decoded by any codecs and is output when the encoding format matches that of the raw block and the render option is used. Analogous to node types in Pandoc and MultiMarkdown.

Properties

The RawBlock type has these properties:

NameDescriptionTypeInherited from
idThe identifier for this item.StringEntity
formatThe format of the raw content.String-
contentThe raw content.Cord-
compilationDigestA digest of the format and content properties.CompilationDigest-
compilationMessagesMessages generated while parsing and transpiling the content into the css property.CompilationMessage*-
cssA Cascading Style Sheet (CSS) generated from the content.String-
authorsThe authors of the content.Author*-
provenanceA summary of the provenance of the content.ProvenanceCount*-

Related

The RawBlock type is related to these types:

Bindings

The RawBlock type is represented in:

Testing

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

PropertyComplexityDescriptionStrategy
formatMin+Fixed as MarkdownString::from("markdown")
High+Generate a random string of up to 10 alphanumeric characters.r"[a-zA-Z0-9]{1,10}"
MaxGenerate an arbitrary string.String::arbitrary()
contentMin+Generate a simple fixed string.Cord::from("content")
Low+Generate a random string of up to 10 alphanumeric characters (exclude whitespace which when leading or trailing causes issues for Markdown).r"[a-zA-Z0-9]{1,10}".prop_map(Cord::from)
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)

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

© 2026 Stencila