{ } Raw JSON

bundles / papyri 0.0.10 / papyri / directives / list_table_handler

function

papyri.directives:list_table_handler

source: /papyri/directives.py:262

Signature

def list_table_handler(argument: str, options: dict[str, str], content: str, *, warn: DirectiveWarn = <function _log_warn at 0x0000>) → 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