aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-12-14 09:13:38 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2021-12-14 09:13:38 +0100
commitce44cf688a0e37f001dccfdb014f4ecd6e55d6ab (patch)
tree9ddeb5844dd55800b6ebd3afb0e9ef216d7f03a8
parent9f089aa2863afdbfacd8a43dc85f0b8c53463bb8 (diff)
downloadpandoc-ce44cf688a0e37f001dccfdb014f4ecd6e55d6ab.tar.gz
doc/lua-filters.md: add docs for `Cell` constructor
-rw-r--r--doc/lua-filters.md35
1 files changed, 31 insertions, 4 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index b0ae3f7a7..7b73dd9c5 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -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.