aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-12-21 09:48:54 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2021-12-21 09:53:44 +0100
commitc90802d7d85ba2ae98492701b30cc37bde757b83 (patch)
treeb71c4517ebbe8485a11e4fd38f509bdcd122b6bf
parentcd2bffee1e4c0ca9c999bd37f81732664f9f107a (diff)
downloadpandoc-c90802d7d85ba2ae98492701b30cc37bde757b83.tar.gz
Lua: fix return types of `blocks_to_inlines`, `make_sections`
Ensures the returned lists have the correct type (`Inlines` and `Blocks`, respectively).
-rw-r--r--src/Text/Pandoc/Lua/Module/Utils.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Lua/Module/Utils.hs b/src/Text/Pandoc/Lua/Module/Utils.hs
index 6d0130dc2..439a9a50b 100644
--- a/src/Text/Pandoc/Lua/Module/Utils.hs
+++ b/src/Text/Pandoc/Lua/Module/Utils.hs
@@ -57,7 +57,7 @@ documentedModule = Module
"blocks" ""
<#> optionalParameter (peekList peekInline) "list of inlines"
"inline" ""
- =#> functionResult (pushPandocList pushInline) "list of inlines" ""
+ =#> functionResult pushInlines "list of inlines" ""
, defun "equals"
### liftPure2 (==)
@@ -72,7 +72,7 @@ documentedModule = Module
"integer or nil" "baselevel" ""
<#> parameter (peekList peekBlock) "list of blocks"
"blocks" "document blocks to process"
- =#> functionResult (pushPandocList pushBlock) "list of Blocks"
+ =#> functionResult pushBlocks "list of Blocks"
"processes blocks"
, defun "normalize_date"