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
This commit is contained in:
Albert Krewinkel
2018-02-24 22:43:28 +01:00
parent 39dd7c794b
commit b5bd8a9461
5 changed files with 21 additions and 4 deletions
+3
View File
@@ -0,0 +1,3 @@
function Para (_)
return pandoc.Para{pandoc.Str(PANDOC_SCRIPT_FILE)}
end