From b95e864ecfc0a0ef96fa09d4118c8e6b4033784c Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Tue, 26 Oct 2021 21:39:24 +0200 Subject: Lua: marshal SimpleTable values as userdata objects --- data/pandoc.lua | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'data') diff --git a/data/pandoc.lua b/data/pandoc.lua index 294fed99e..cc4dc0cab 100644 --- a/data/pandoc.lua +++ b/data/pandoc.lua @@ -348,30 +348,6 @@ function M.MetaBool(bool) return bool end ------------------------------------------------------------------------- --- Legacy and compatibility types --- - ---- Creates a simple (old style) table element. --- @function SimpleTable --- @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 -M.SimpleTable = function(caption, aligns, widths, headers, rows) - return { - caption = ensureInlineList(caption), - aligns = List:new(aligns), - widths = List:new(widths), - headers = List:new(headers), - rows = List:new(rows), - tag = "SimpleTable", - t = "SimpleTable", - } -end - ------------------------------------------------------------------------ -- Functions which have moved to different modules M.sha1 = utils.sha1 -- cgit v1.2.3