From ce44cf688a0e37f001dccfdb014f4ecd6e55d6ab Mon Sep 17 00:00:00 2001
From: Albert Krewinkel <albert@zeitkraut.de>
Date: Tue, 14 Dec 2021 09:13:38 +0100
Subject: [PATCH] doc/lua-filters.md: add docs for `Cell` constructor

---
 doc/lua-filters.md | 35 +++++++++++++++++++++++++++++++----
 1 file 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.