Home

Admonition

This is a type used in Stencila Schema for admonition or callout blocks.

It exists to represent semantically distinct callouts such as notes, warnings, tips, and cautions as structured document content rather than as presentation-only containers. This supports consistent rendering, folding, and transformation across authoring and publishing formats.

Key properties include admonitionType, title, isFolded, and content.

Analogues

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

  • HTML <aside>: Closest HTML sectioning analogue, though HTML <aside> is broader and does not itself encode admonition type or folding behavior.

  • JATS <boxed-text>: Closest JATS analogue for boxed callout content, but JATS does not standardize the same admonition type vocabulary.

  • Pandoc Div: Pandoc admonitions are usually represented as divisions with classes and attributes rather than a dedicated node type.

  • MyST directive admonition

Properties

The Admonition type has these properties:

NameDescriptionTypeInherited from
admonitionTypeThe type of admonition.AdmonitionType-
titleThe title of the admonition.Inline*-
isFoldedWhether the admonition is folded.Boolean-
contentThe content within the section.Block*-
authorsThe authors of the admonition.Author*-
provenanceA summary of the provenance of the content within the admonition.ProvenanceCount*-
idThe identifier for this item.StringEntity

Related

The Admonition type is related to these types:

Bindings

The Admonition type is represented in:

Testing

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

PropertyComplexityDescriptionStrategy
admonitionTypeMin+Fixed admonition type.AdmonitionType::Info
Low+Generate an arbitrary admonition type.AdmonitionType::arbitrary()
titleMin+No title.None
Low+Generate up to two arbitrary, non-recursive, inline nodes.option::of(vec_inlines_non_recursive(2))
High+Generate up to four arbitrary, non-recursive, inline nodes.option::of(vec_inlines_non_recursive(4))
isFoldedMin+Not foldable.None
Low+Arbitrarily, un-foldable, folded, or unfolded.option::of(bool::arbitrary())
contentMin+A single, simple paragraph.vec![p([t("Admonition content")])]
Low+Generate up to two arbitrary paragraphs.vec_paragraphs(2)
High+Generate up to four arbitrary, non-recursive, block nodes.vec_blocks_non_recursive(4)

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

© 2026 Stencila