{ } Raw JSON

bundles / papyri latest / papyri / directives / container_handler

function

papyri.directives:container_handler

source: /papyri/directives.py:438

Signature

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

Summary

Handler for .. container:: — unfold wrapped content.

Extended Summary

The container directive is a structural wrapper with an optional CSS class name. Since the papyri IR has no class-name concept for block nodes, we drop the wrapper and return the parsed children directly.

Aliases

  • papyri.directives.container_handler