From e4287e6c950745ad78954b791bc87f322cd05530 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Wed, 20 Oct 2021 21:40:07 +0200 Subject: Lua: marshal Pandoc values as userdata --- data/pandoc.lua | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'data') diff --git a/data/pandoc.lua b/data/pandoc.lua index 35ca20a84..173c8c179 100644 --- a/data/pandoc.lua +++ b/data/pandoc.lua @@ -310,26 +310,6 @@ local function ensureAttr(attr) error('Could not convert to Attr') end ------------------------------------------------------------------------- ---- Pandoc Document --- @section document - ---- A complete pandoc document --- @function Pandoc --- @tparam {Block,...} blocks document content --- @tparam[opt] Meta meta document meta data -M.Pandoc = AstElement:make_subtype'Pandoc' -M.Pandoc.behavior.clone = M.types.clone.Pandoc -function M.Pandoc:new (blocks, meta) - return { - blocks = ensureList(blocks), - meta = meta or {}, - } -end - --- DEPRECATED synonym: -M.Doc = M.Pandoc - ------------------------------------------------------------------------ -- Meta -- @section Meta -- cgit v1.2.3