Home

Inline

This is a union type used in Stencila Schema for inline content.

It brings together the node types that can appear within prose content, analogous to inline-content unions in HTML, Markdown ASTs, and other document models. The union allows Stencila to mix text, marks, citations, code, math, media, and executable inline elements within a single typed model.

Use this type to understand what can appear in inline content arrays such as those on Paragraph, Heading, and other prose nodes.

Analogues

The following external types, elements, or nodes are similar to a Inline:

  • HTML phrasing content: Broadly analogous to HTML inline-capable content, though Stencila's union is a typed AST union rather than a DOM content category.

  • Pandoc Inline: Closest Pandoc union analogue for inline content.

  • MDAST phrasing content: Closest MDAST analogue for reusable inline-content positions.

Members

The Inline type has these members:

Bindings

The Inline type is represented in:

Testing

During property-based (a.k.a generative) testing, the variants of the Inline type are generated using the following strategies. Any variant not shown is generated using the default strategy for the corresponding type and complexity level.

VariantComplexityDescriptionStrategy
AnnotationMin+Do not generate Annotation nodes in inline content.-
BoundaryMin+Do not generate Boundary nodes in inline content.-
Low+Do not generate Boundary nodes in inline content.-
AudioObjectMin+Do not generate AudioObject nodes in inline content.-
High+Generate AudioObject nodes in inline content.Default for level
ButtonMin+Do not generate Button nodes in inline content.-
CitationMin+Do not generate Citation nodes in inline content.-
CitationGroupMin+Do not generate CitationGroup nodes in inline content.-
CodeExpressionMin+Do not generate CodeExpression nodes in inline content.-
Low+Generate CodeExpression nodes in inline content.Default for level
DateMin+Do not generate Date nodes in inline content.-
High+Generate Date nodes in inline content.Default for level
DateTimeMin+Do not generate DateTime nodes in inline content.-
High+Generate DateTime nodes in inline content.Default for level
DurationMin+Do not generate Duration nodes in inline content.-
High+Generate Duration nodes in inline content.Default for level
IconMin+Do not generate Icon nodes in inline content.-
InstructionInlineMin+Do not generate InstructionInline nodes in inline content.-
MaxGenerate InstructionInline nodes in inline content.Default for level
MediaObjectMin+Do not generate MediaObject nodes in inline content.-
NoteMin+Do not generate Note nodes in inline content.-
Low+Generate Note nodes in inline content.Default for level
ParameterMin+Do not generate Parameter nodes in inline content.-
Low+Generate Parameter nodes in inline content.Default for level
SentenceMin+Do not generate Sentence nodes in inline content.-
SuggestionInlineMin+Do not generate SuggestionInline nodes in inline content.-
TimeMin+Do not generate Time nodes in inline content.-
High+Generate Time nodes in inline content.Default for level
TimestampMin+Do not generate Timestamp nodes in inline content.-
High+Generate Timestamp nodes in inline content.Default for level
VideoObjectMin+Do not generate VideoObject nodes in inline content.-
High+Generate VideoObject nodes in inline content.Default for level
NullMin+Do not generate Null nodes in inline content.-
MaxGenerate a null value.Inline::Null(Null)
BooleanMin+Do not generate Boolean nodes in inline content.-
MaxGenerate an arbitrary boolean value.Boolean::arbitrary().prop_map(Inline::Boolean)
IntegerMin+Do not generate Integer nodes in inline content.-
MaxGenerate an arbitrary integer value.Integer::arbitrary().prop_map(Inline::Integer)
UnsignedIntegerMin+Do not generate UnsignedInteger nodes in inline content (since roundtripconversion can not differentiate it from an Integer).-
NumberMin+Do not generate Number nodes in inline content.-
MaxGenerate a fixed number. Used at all levels because even with JSON (and other data serialization formats)round trip conversions can fail in the last significant digit of random numbers.Inline::Number(1.23)

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

© 2026 Stencila