diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2018-01-07 14:06:34 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2018-01-07 14:06:34 +0100 |
commit | 967a54dea30c6e7ff0ea8eb9f4ee41a12167b475 (patch) | |
tree | 30a282147939693f1aa21d2524033a244dc54f74 | |
parent | f5dec4bdc12e5ba895458ba117e0966a78b3c790 (diff) | |
download | pandoc-967a54dea30c6e7ff0ea8eb9f4ee41a12167b475.tar.gz |
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.
-rw-r--r-- | data/pandoc.lua | 6 |
1 files 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 |