From c90802d7d85ba2ae98492701b30cc37bde757b83 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Tue, 21 Dec 2021 09:48:54 +0100 Subject: Lua: fix return types of `blocks_to_inlines`, `make_sections` Ensures the returned lists have the correct type (`Inlines` and `Blocks`, respectively). --- src/Text/Pandoc/Lua/Module/Utils.hs | 4 ++-- 1 file 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" -- cgit v1.2.3