diff options
| author | Albert Krewinkel <albert@zeitkraut.de> | 2022-01-02 11:04:10 +0100 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-01-29 08:43:14 -0800 |
| commit | 412596c30baec47041ccb3b1823f9beca7c98d76 (patch) | |
| tree | 59304d347943c3998360e6d50016eefc4cdf5146 /src/Text/Pandoc/Lua/Module/Utils.hs | |
| parent | a6fa3df1146f7aee4e3bfa4cf506ab44e38ecb35 (diff) | |
Switch to hslua-2.1
This allows for some code simplification and improves stability.
Diffstat (limited to 'src/Text/Pandoc/Lua/Module/Utils.hs')
| -rw-r--r-- | src/Text/Pandoc/Lua/Module/Utils.hs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Lua/Module/Utils.hs b/src/Text/Pandoc/Lua/Module/Utils.hs index 0c3969e13..14796b146 100644 --- a/src/Text/Pandoc/Lua/Module/Utils.hs +++ b/src/Text/Pandoc/Lua/Module/Utils.hs @@ -56,8 +56,7 @@ documentedModule = Module return $ B.toList (Shared.blocksToInlinesWithSep sep blks)) <#> parameter (peekList peekBlock) "list of blocks" "blocks" "" - <#> optionalParameter (peekList peekInline) "list of inlines" - "inline" "" + <#> opt (parameter (peekList peekInline) "list of inlines" "inline" "") =#> functionResult pushInlines "list of inlines" "" , defun "equals" @@ -121,8 +120,8 @@ documentedModule = Module ) <#> parameter peekPandoc "Pandoc" "doc" "input document" <#> parameter peekString "filepath" "filter_path" "path to filter" - <#> optionalParameter (peekList peekString) "list of strings" - "args" "arguments to pass to the filter" + <#> opt (parameter (peekList peekString) "list of strings" + "args" "arguments to pass to the filter") =#> functionResult pushPandoc "Pandoc" "filtered document" , defun "stringify" |
