Home

Raw Block

This is a block type used in Stencila Schema for raw format-specific content.

It exists to preserve content that should bypass normal decoding into the document model and instead be emitted directly when the target format matches. This is useful for passthrough markup, format-specific extensions, and other content that Stencila should carry without interpreting structurally.

Key properties include format, content, and derived compilation-related properties such as css when applicable.

Properties

The RawBlock type has these properties:

NameDescriptionTypeInherited from
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*-
idThe identifier for this item.StringEntity

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