diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2017-12-02 23:07:29 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2017-12-02 23:07:29 +0100 |
commit | d5b1c7b767a24bda592ea35902b8e1dc971d6d80 (patch) | |
tree | 3c39efd50b1390ad4dd447cd5a4c1ee14ae1184a /data | |
parent | a7953a60b984474b6937e153c62f51b560e6f994 (diff) | |
download | pandoc-d5b1c7b767a24bda592ea35902b8e1dc971d6d80.tar.gz |
Lua filters: refactor lua module handling
The integration with Lua's package/module system is improved: A
pandoc-specific package searcher is prepended to the searchers in
`package.searchers`. The modules `pandoc` and `pandoc.mediabag` can now
be loaded via `require`.
Diffstat (limited to 'data')
-rw-r--r-- | data/pandoc.List.lua (renamed from data/List.lua) | 0 | ||||
-rw-r--r-- | data/pandoc.lua | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/data/List.lua b/data/pandoc.List.lua index b68ff5119..b68ff5119 100644 --- a/data/List.lua +++ b/data/pandoc.List.lua diff --git a/data/pandoc.lua b/data/pandoc.lua index 0c4b96f1c..85a4639ce 100644 --- a/data/pandoc.lua +++ b/data/pandoc.lua @@ -162,7 +162,7 @@ M.Doc = M.Pandoc -- @tparam meta table table containing document meta information M.Meta = {} M.Meta.__call = function(t, meta) - return setmetatable(meta, self) + return setmetatable(meta, t) end setmetatable(M.Meta, M.Meta) |