{ } Raw JSON

bundles / papyri latest / papyri / directives / list_table_handler

function

papyri.directives:list_table_handler

source: /papyri/directives.py :180

Signature

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

Summary

Handler for the .. list-table:: directive.

Extended Summary

The directive body is a two-level bullet list — outer items are rows, inner items are cells. The :header-rows: option (an integer count) marks how many leading rows are headers.

argument is the optional caption; if present it's emitted as a leading Paragraph before the table (papyri has no caption-aware Table node yet — keeps the text from being silently dropped).

Unsupported options (:widths:, :stub-columns:, :align:, :class:, :name:) are tolerated and ignored — the structured Table model doesn't carry presentation hints.

Aliases

  • papyri.directives.list_table_handler