diff options
| author | Albert Krewinkel <[email protected]> | 2022-01-02 13:53:39 +0100 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2022-01-02 13:57:01 +0100 |
| commit | 85334eb6c462432ec4ccbc7ef360a7e472deb3c7 (patch) | |
| tree | d2c1484fb8207438371736276e457cc3f1f9b0a7 /src | |
| parent | 6121de369ce5a3500643b85a2b436648723a6a89 (diff) | |
Lua writer: provide global `PANDOC_WRITER_OPTIONS`
Closes: #6731
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/Writers/Custom.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Writers/Custom.hs b/src/Text/Pandoc/Writers/Custom.hs index da212ab4e..d13fbfb24 100644 --- a/src/Text/Pandoc/Writers/Custom.hs +++ b/src/Text/Pandoc/Writers/Custom.hs @@ -89,6 +89,7 @@ writeCustom :: (PandocMonad m, MonadIO m) writeCustom luaFile opts doc@(Pandoc meta _) = do let globals = [ PANDOC_DOCUMENT doc , PANDOC_SCRIPT_FILE luaFile + , PANDOC_WRITER_OPTIONS opts ] res <- runLua $ do setGlobals globals |
