git.iko.soy/typeable/pandoc
on master help sign in
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.

commit967a54dea30c6e7ff0ea8eb9f4ee41a12167b475 authorAlbert Krewinkel <albert@zeitkraut.de> dateSun 7 Jan 2018, 14:06 (9 years ago) parentf5dec4b
1 file changed+2−4
data/pandoc.lua+2−4
data/pandoc.lua+2−4
@@ -177,11 +177,9 @@ end
177177-- @tparam[opt] Meta meta document meta data
178178M.Pandoc = AstElement:make_subtype'Pandoc'
179179function M.Pandoc.constructor (blocks, meta)
180− meta = meta or {}
181180 return {
182− ["blocks"] = List:new(blocks),
183− ["meta"] = meta,
184− ["pandoc-api-version"] = {1,17,0,5},
181+ blocks = List:new(blocks),
182+ meta = meta or {},
185183 }
186184end
187185