pandoc/test/lua/script-name.lua
Albert Krewinkel b5bd8a9461
Lua: register script name in global variable
The name of the Lua script which is executed is made available in the
global Lua variable `PANDOC_SCRIPT_FILE`, both for Lua filters and
custom writers.

Closes: #4393
2018-02-24 22:43:28 +01:00

3 lines
75 B
Lua

function Para (_)
return pandoc.Para{pandoc.Str(PANDOC_SCRIPT_FILE)}
end