bundles / papyri 0.0.10 / papyri / directives / make_figure_handler
function
papyri.directives:make_figure_handler
source: /papyri/directives.py :630
Signature
def make_figure_handler ( doc_path : Path | None , asset_store : Callable[[str, bytes], None] | None , module : str , version : str , doc_root : Path | None = None ) → Callable[[str, dict[str, str], str], list[Any]] Summary
Return a .. figure:: directive handler bound to the given asset context.
Extended Summary
The figure directive is like image but may carry an optional caption in its body. Path resolution is identical to make_image_handler; the caption (if present) is appended as a Paragraph after the image node.
Aliases
-
papyri.directives.make_figure_handler