doc/lua-filters.md: add docs for Cell constructor

This commit is contained in:
Albert Krewinkel 2021-12-14 09:13:38 +01:00
parent 9f089aa286
commit ce44cf688a
No known key found for this signature in database
GPG key ID: 388DC0B21F631124

View file

@ -1812,12 +1812,12 @@ Fields:
: cell contents (list of [Blocks]).
`col_span`
: number of columns occupied by the cell; the height of the cell
(integer).
: number of columns spanned by the cell; the width of the cell
in columns (integer).
`row_span`
: number of rows occupied by the cell; the height of the cell
(integer).
: number of rows spanned by the cell; the height of the cell in
rows (integer).
`identifier`
: alias for `attr.identifier` (string)
@ -2831,6 +2831,33 @@ format, and functions to filter and modify a subtree.
Returns: [Attr](#type-attr) object
[`Cell (blocks[, align[, rowspan[, colspan[, attr]]]])`]{#pandoc.attr}
: Create a new table cell.
Parameters:
`blocks`:
: cell contents (list of [Blocks])
`align`:
: text alignment; defaults to `AlignDefault` (Alignment)
`rowspan`:
: number of rows occupied by the cell; defaults to `1`
(integer)
`colspan`:
: number of columns spanned by the cell; defaults to `1`
(integer)
`attr`:
: cell attributes ([Attr](#type-attr))
Returns:
- [Cell](#type-cell) object
[`Citation (id, mode[, prefix[, suffix[, note_num[, hash]]]])`]{#pandoc.citation}
: Creates a single citation.