{ } Raw JSON

bundles / papyri 0.0.10 / papyri / directives / admonition_handler

function

papyri.directives:admonition_handler

source: /papyri/directives.py:385

Signature

def admonition_handler(argument: str, options: dict[str, str], content: str) → list[Any]

Summary

Handler for the generic .. admonition:: Title directive.

Extended Summary

Unlike the named admonitions (.. note::, .. warning::, etc.) the generic admonition carries an explicit user-supplied title as its argument. The body is an optional RST block.

Aliases

  • papyri.directives.admonition_handler