diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2021-12-21 18:53:37 +0100 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2021-12-21 19:01:11 +0100 |
commit | 17a32a99a5eefadc5ebe66d441b6c4f7a0d2f438 (patch) | |
tree | a65d95bdc02f25530f1eeec44193bd97154fdb66 /src/Text/Pandoc | |
parent | 1c389bf6b6236cefcadac3c2eefe62eb6c884863 (diff) | |
download | pandoc-17a32a99a5eefadc5ebe66d441b6c4f7a0d2f438.tar.gz |
Lua: simplify and deprecate function `pandoc.utils.equals`
The function is no longer required for element comparisons; it is now an
alias for the `==` operator.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Lua/Module/Utils.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Lua/Module/Utils.hs b/src/Text/Pandoc/Lua/Module/Utils.hs index c1bb42410..24fd3402e 100644 --- a/src/Text/Pandoc/Lua/Module/Utils.hs +++ b/src/Text/Pandoc/Lua/Module/Utils.hs @@ -61,9 +61,9 @@ documentedModule = Module =#> functionResult pushInlines "list of inlines" "" , defun "equals" - ### liftPure2 (==) - <#> parameter peekAstElement "AST element" "elem1" "" - <#> parameter peekAstElement "AST element" "elem2" "" + ### equal + <#> parameter pure "AST element" "elem1" "" + <#> parameter pure "AST element" "elem2" "" =#> functionResult pushBool "boolean" "true iff elem1 == elem2" , defun "make_sections" |