diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2020-04-13 10:08:38 +0200 |
---|---|---|
committer | despresc <christian.j.j.despres@gmail.com> | 2020-04-15 23:03:22 -0400 |
commit | f1bd06eb4a327ca686229cfa13fa730744dcd22d (patch) | |
tree | b360c5bc0efb5d822e3794ad36be199442702bb7 /data | |
parent | 2fc11f3b1efdd61cddf834878b845a5ec7b93923 (diff) | |
download | pandoc-f1bd06eb4a327ca686229cfa13fa730744dcd22d.tar.gz |
Lua: support new tables
Diffstat (limited to 'data')
-rw-r--r-- | data/pandoc.lua | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/data/pandoc.lua b/data/pandoc.lua index d1c88d0a1..e9b6209c3 100644 --- a/data/pandoc.lua +++ b/data/pandoc.lua @@ -556,26 +556,27 @@ M.RawBlock = M.Block:create_constructor( --- Creates a table element. -- @function Table --- @tparam {Inline,...} caption table caption --- @tparam {AlignDefault|AlignLeft|AlignRight|AlignCenter,...} aligns alignments --- @tparam {int,...} widths column widths --- @tparam {Block,...} headers header row --- @tparam {{Block,...}} rows table rows --- @treturn Block table element +-- @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 M.Table = M.Block:create_constructor( "Table", - function(caption, aligns, widths, headers, rows) + function(attr, caption, colspecs, head, bodies, foot) return { c = { - ensureInlineList(caption), - List:new(aligns), - List:new(widths), - List:new(headers), - List:new(rows) + attr, + caption, + List:new(colspecs), + head, + List:new(bodies), + foot } } end, - {"caption", "aligns", "widths", "headers", "rows"} + {"attr", "caption", "colspecs", "head", "bodies", "foot"} ) |