pandoc-2.19.2: Conversion between markup formats
CopyrightCopyright © 2017-2022 Albert Krewinkel
LicenseGNU GPL, version 2 or above
MaintainerAlbert Krewinkel <tarleb+pandoc@moltkeplatz.de>
Stabilityalpha
Safe HaskellSafe-Inferred
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.