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

Contents

Description

Running pandoc Lua filters.

Synopsis

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

Constructors

LuaException Text 
Instances
Show LuaException Source # 
Instance details

Defined in Text.Pandoc.Lua.Init

Lua globals

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

Set all given globals.

Filters

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

Transform document using the filter defined in the given file.