From 967a54dea30c6e7ff0ea8eb9f4ee41a12167b475 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Sun, 7 Jan 2018 14:06:34 +0100 Subject: [PATCH] data/pandoc.lua: drop 'pandoc-api-version' from Pandoc objects This attribute was out-of-sync with the actual version as is mostly irrelevant in the context Lua filters and custom writers. Use the global `PANDOC_API_VERSION` instead. --- data/pandoc.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/data/pandoc.lua b/data/pandoc.lua index 52515a139..a069dcb50 100644 --- a/data/pandoc.lua +++ b/data/pandoc.lua @@ -177,11 +177,9 @@ end -- @tparam[opt] Meta meta document meta data M.Pandoc = AstElement:make_subtype'Pandoc' function M.Pandoc.constructor (blocks, meta) - meta = meta or {} return { - ["blocks"] = List:new(blocks), - ["meta"] = meta, - ["pandoc-api-version"] = {1,17,0,5}, + blocks = List:new(blocks), + meta = meta or {}, } end