diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2017-12-06 20:45:38 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2017-12-06 22:50:56 +0100 |
commit | 4066a385ace1cee53336bf4c10734239044a92ae (patch) | |
tree | 1ed8d3bb1201f298840c53ae8e72bf4afa8f8ad9 /data/init.lua | |
parent | d5b1c7b767a24bda592ea35902b8e1dc971d6d80 (diff) | |
download | pandoc-4066a385ace1cee53336bf4c10734239044a92ae.tar.gz |
Lua filters: use script to initialize the interpreter
The file `init.lua` is used to initialize the Lua interpreter which is
used in Lua filters. This gives users the option to require libraries
which they want to use in all of their filters, and to extend default
modules.
Diffstat (limited to 'data/init.lua')
-rw-r--r-- | data/init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/data/init.lua b/data/init.lua new file mode 100644 index 000000000..7a46269d8 --- /dev/null +++ b/data/init.lua @@ -0,0 +1,6 @@ +-- This Lua script is run every time the Lua interpreter is started when running +-- a Lua filter. It can be customized to load additional modules or to alter the +-- default modules. + +pandoc = require 'pandoc' +pandoc.mediabag = require 'pandoc.mediabag' |