{ } Raw JSON

bundles / papyri latest / papyri / nodes / Admonition

class

papyri.nodes:Admonition

source: /papyri/nodes.py :554

Signature

class   Admonition ( * args : Any ** kwargs : Any )  →  None

Members

Summary

Block-level admonition (note, warning, tip, …).

Extended Summary

kind is the admonition type string ("note", "warning", etc.). The first child is typically an AdmonitionTitle.

base_type is the finite styling category (one of ADMONITION_BASE_TYPES) derived from kind; it is stored in the IR so the renderer styles by a small fixed vocabulary without replicating the kind→category map.

Aliases

  • papyri.directives.Admonition