pandoc-2.14.2: Conversion between markup formats
CopyrightCopyright © 2017-2021 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 PandocError a) Source #

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

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.