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.
This commit is contained in:
Albert Krewinkel 2018-01-07 14:06:34 +01:00
parent f5dec4bdc1
commit 967a54dea3
No known key found for this signature in database
GPG key ID: 388DC0B21F631124

View file

@ -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