Home

Admonition

Highlight important ideas or signal content that’s supplemental or only relevant in certain situations.

Properties

The Admonition type has these properties:

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

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