aboutsummaryrefslogtreecommitdiff
path: root/data/pandoc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'data/pandoc.lua')
-rw-r--r--data/pandoc.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/pandoc.lua b/data/pandoc.lua
index 340c2f46c..d031bf5d0 100644
--- a/data/pandoc.lua
+++ b/data/pandoc.lua
@@ -556,18 +556,18 @@ M.RawBlock = M.Block:create_constructor(
--- Creates a table element.
-- @function Table
--- @tparam Attr attr attributes
-- @tparam Caption caption table caption
-- @tparam {ColSpec,...} colspecs column alignments and widths
-- @tparam TableHead head table head
-- @tparam {TableBody,..} bodies table bodies
-- @treturn TableFoot foot table foot
+-- @tparam[opt] Attr attr attributes
M.Table = M.Block:create_constructor(
"Table",
- function(attr, caption, colspecs, head, bodies, foot)
+ function(caption, colspecs, head, bodies, foot, attr)
return {
c = {
- attr,
+ ensureAttr(attr),
caption,
List:new(colspecs),
head,