Copyright | Copyright © 2017–2020 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 :: Lua a -> PandocIO (Either LuaException a)
- newtype LuaException = LuaException Text
- data Global
- setGlobals :: [Global] -> Lua ()
- runFilterFile :: FilePath -> Pandoc -> Lua Pandoc
Documentation
runLua :: Lua a -> PandocIO (Either LuaException a) Source #
Run the lua interpreter, using pandoc's default way of environment initialization.
newtype LuaException Source #
Lua error message
Instances
Show LuaException Source # | |
Defined in Text.Pandoc.Lua.Init showsPrec :: Int -> LuaException -> ShowS # show :: LuaException -> String # showList :: [LuaException] -> ShowS # |
Lua globals
Permissible global Lua variables.
setGlobals :: [Global] -> Lua () Source #
Set all given globals.