pandoc-2.3: Conversion between markup formats

CopyrightCopyright © 2017–2018 Albert Krewinkel
LicenseGNU GPL, version 2 or above
MaintainerAlbert Krewinkel <tarleb+pandoc@moltkeplatz.de>
Stabilityalpha
Safe HaskellNone
LanguageHaskell2010

Text.Pandoc.Lua

Description

Running pandoc Lua filters.

Synopsis

Documentation

data LuaException #

Exceptions raised by Lua-related operations.

Constructors

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.