diff options
| author | Albert Krewinkel <[email protected]> | 2023-03-19 21:21:06 +0100 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2023-03-19 22:39:15 +0100 |
| commit | a37eda971377397e7a2cc71553e5e5d7c0326a9b (patch) | |
| tree | 1ead0d06894084267e19b1c6efa0e55dd176829c /pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs | |
| parent | afee37abc74abac6326486bd355ed6ae800c2ca5 (diff) | |
lua-filters.md: auto-generate docs for more modules
Diffstat (limited to 'pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs')
| -rw-r--r-- | pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs index b4397e2bc..0080994a7 100644 --- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs +++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Format.hs @@ -26,7 +26,7 @@ documentedModule :: Module PandocError documentedModule = Module { moduleName = "pandoc.format" , moduleDescription = T.unlines - [ "Pandoc formats and their extensions." + [ "Information about the formats supported by pandoc." ] , moduleFields = [] , moduleOperations = [] @@ -37,19 +37,7 @@ documentedModule = Module -- | Extension module functions. functions :: [DocumentedFunction PandocError] functions = - [ defun "default_extensions" - ### liftPure getDefaultExtensions - <#> parameter peekText "string" "format" "format name" - =#> functionResult pushExtensions "FormatExtensions" - "default extensions enabled for `format`" - #? T.unlines - [ "Returns the list of default extensions of the given format; this" - , "function does not check if the format is supported, it will return" - , "a fallback list of extensions even for unknown formats." - ] - `since` makeVersion [3,0] - - , defun "all_extensions" + [ defun "all_extensions" ### liftPure getAllExtensions <#> parameter peekText "string" "format" "format name" =#> functionResult pushExtensions "FormatExtensions" @@ -62,6 +50,18 @@ functions = ] `since` makeVersion [3,0] + , defun "default_extensions" + ### liftPure getDefaultExtensions + <#> parameter peekText "string" "format" "format name" + =#> functionResult pushExtensions "FormatExtensions" + "default extensions enabled for `format`" + #? T.unlines + [ "Returns the list of default extensions of the given format; this" + , "function does not check if the format is supported, it will return" + , "a fallback list of extensions even for unknown formats." + ] + `since` makeVersion [3,0] + , defun "extensions" ### liftPure getExtensionsConfig <#> textParam "format" "format identifier" |
