mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-24 01:06:30 +00:00
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:
@@ -0,0 +1,3 @@
|
||||
function Para (_)
|
||||
return pandoc.Para{pandoc.Str(PANDOC_SCRIPT_FILE)}
|
||||
end
|
||||
Reference in New Issue
Block a user