diff options
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" |
