pandoc-2.9.2.1: Conversion between markup formats
CopyrightCopyright © 2017–2020 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

runLua :: Lua a -> PandocIO (Either LuaException a) #

Run the lua interpreter, using pandoc's default way of environment initialization.

newtype LuaException #

Lua error message

Constructors

LuaException Text 

Instances

Instances details
Show LuaException # 
Instance details

Defined in Text.Pandoc.Lua.Init

Methods

showsPrec :: Int -> LuaException -> ShowS #

show :: LuaException -> String #

showList :: [LuaException] -> ShowS #

Lua globals

setGlobals :: [Global] -> Lua () #

Set all given globals.

Filters

runFilterFile :: FilePath -> Pandoc -> Lua Pandoc #

Transform document using the filter defined in the given file.