parent
6121de369c
commit
85334eb6c4
2 changed files with 5 additions and 0 deletions
|
@ -267,6 +267,10 @@ variables.
|
||||||
While the object can be modified, the changes will **not**
|
While the object can be modified, the changes will **not**
|
||||||
be picked up by pandoc.
|
be picked up by pandoc.
|
||||||
|
|
||||||
|
This variable is also set in custom writers.
|
||||||
|
|
||||||
|
*Since: pandoc 2.17*
|
||||||
|
|
||||||
`PANDOC_VERSION`
|
`PANDOC_VERSION`
|
||||||
: Contains the pandoc version as a [Version] object which
|
: Contains the pandoc version as a [Version] object which
|
||||||
behaves like a numerically indexed table, most significant
|
behaves like a numerically indexed table, most significant
|
||||||
|
|
|
@ -89,6 +89,7 @@ writeCustom :: (PandocMonad m, MonadIO m)
|
||||||
writeCustom luaFile opts doc@(Pandoc meta _) = do
|
writeCustom luaFile opts doc@(Pandoc meta _) = do
|
||||||
let globals = [ PANDOC_DOCUMENT doc
|
let globals = [ PANDOC_DOCUMENT doc
|
||||||
, PANDOC_SCRIPT_FILE luaFile
|
, PANDOC_SCRIPT_FILE luaFile
|
||||||
|
, PANDOC_WRITER_OPTIONS opts
|
||||||
]
|
]
|
||||||
res <- runLua $ do
|
res <- runLua $ do
|
||||||
setGlobals globals
|
setGlobals globals
|
||||||
|
|
Loading…
Add table
Reference in a new issue