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:
parent
f5dec4bdc1
commit
967a54dea3
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue