Copyright | © 2022-2023 Albert Krewinkel |
---|---|
License | GPL-2.0-or-later |
Maintainer | Albert Krewinkel <tarleb+pandoc@moltkeplatz.de> |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Central data structure for scripting engines.
Synopsis
- data ScriptingEngine = ScriptingEngine {
- engineName :: Text
- engineApplyFilter :: forall m. (PandocMonad m, MonadIO m) => Environment -> [String] -> FilePath -> Pandoc -> m Pandoc
- engineLoadCustom :: forall m. (PandocMonad m, MonadIO m) => FilePath -> m (CustomComponents m)
- data CustomComponents m = CustomComponents {
- customReader :: Maybe (Reader m)
- customWriter :: Maybe (Writer m)
- customTemplate :: Maybe Text
- customExtensions :: Maybe ExtensionsConfig
- noEngine :: ScriptingEngine
Documentation
data ScriptingEngine Source #
Structure to define a scripting engine.
ScriptingEngine | |
|
data CustomComponents m Source #
A component of a custom reader/writer: a custom reader, a custom writer, a template for a custom writer, or a specification of the extensions used by a script and their default values. Note that a single script can contain all of these.
CustomComponents | |
|