| 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 |
Text.Pandoc.Lua
Description
Running pandoc Lua filters.
Synopsis
- data LuaException = LuaException String
- runLuaFilter :: ReaderOptions -> FilePath -> String -> Pandoc -> PandocIO (Either LuaException Pandoc)
- runPandocLua :: Lua a -> PandocIO (Either LuaException a)
Documentation
data LuaException #
Exceptions raised by Lua-related operations.
Constructors
| LuaException String |
Instances
| Eq LuaException | |
Defined in Foreign.Lua.Types.Error | |
| Show LuaException | |
Defined in Foreign.Lua.Types.Error Methods showsPrec :: Int -> LuaException -> ShowS # show :: LuaException -> String # showList :: [LuaException] -> ShowS # | |
| Exception LuaException | |
Defined in Foreign.Lua.Types.Error Methods toException :: LuaException -> SomeException # fromException :: SomeException -> Maybe LuaException # displayException :: LuaException -> String # | |
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.