Copyright | Copyright © 2017–2018 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
- newtype LuaException = LuaException String
- runLuaFilter :: ReaderOptions -> FilePath -> String -> Pandoc -> PandocIO (Either LuaException Pandoc)
- runPandocLua :: Lua a -> PandocIO (Either LuaException a)
Documentation
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 # |
runLuaFilter :: ReaderOptions -> FilePath -> String -> Pandoc -> PandocIO (Either LuaException Pandoc) Source #
Run the Lua filter in filterPath
for a transformation to target
format format
. Pandoc uses Lua init files to setup the Lua
interpreter.
runPandocLua :: Lua a -> PandocIO (Either LuaException a) Source #
Run the lua interpreter, using pandoc's default way of environment initialization.