Copyright | Copyright © 2017-2021 Albert Krewinkel |
---|---|
License | GNU GPL, version 2 or above |
Maintainer | Albert Krewinkel <tarleb+pandoc@moltkeplatz.de> |
Stability | alpha |
Safe Haskell | None |
Language | Haskell2010 |
Running pandoc Lua filters.
Synopsis
- runLua :: (PandocMonad m, MonadIO m) => LuaE PandocError a -> m (Either PandocError a)
- data Global
- setGlobals :: [Global] -> LuaE PandocError ()
- runFilterFile :: FilePath -> Pandoc -> LuaE PandocError Pandoc
Documentation
runLua :: (PandocMonad m, MonadIO m) => LuaE PandocError a -> m (Either PandocError a) Source #
Run the lua interpreter, using pandoc's default way of environment initialization.
Lua globals
Permissible global Lua variables.
setGlobals :: [Global] -> LuaE PandocError () Source #
Set all given globals.
Filters
runFilterFile :: FilePath -> Pandoc -> LuaE PandocError Pandoc Source #
Transform document using the filter defined in the given file.