pandoc-2.15: 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 :: (PandocMonad m, MonadIO m) => LuaE PandocError a -> m (Either PandocError a) Source #

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

Lua globals

setGlobals :: [Global] -> LuaE PandocError () Source #

Set all given globals.

Filters

runFilterFile :: FilePath -> Pandoc -> LuaE PandocError Pandoc Source #

Transform document using the filter defined in the given file.