From 4066a385ace1cee53336bf4c10734239044a92ae Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Wed, 6 Dec 2017 20:45:38 +0100 Subject: 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. --- data/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 data/init.lua (limited to 'data/init.lua') 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' -- cgit v1.2.3