aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-12-23 15:48:09 +0100
committerAlbert Krewinkel <albert@zeitkraut.de>2021-12-23 16:04:35 +0100
commitfae63b09bb5034b961118181d80a4377d12d223b (patch)
treebce1f5e444f425399a4a076ff21bb4d4dc8d7386 /doc
parentddd1b856087b7620d9b314026a76dd53d52d65b6 (diff)
downloadpandoc-fae63b09bb5034b961118181d80a4377d12d223b.tar.gz
Lua: use released pandoc-lua-marshal-0.1.3.
Inlines, Blocks, and List objects now have an `__eq` metamethod, testing equality by comparing two lists element-wise.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua-filters.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index af3342826..440d06653 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -3727,6 +3727,22 @@ methods and convenience functions.
Returns: a new list containing all elements from list1 and
list2
+[`pandoc.List:__eq (a, b)`]{#pandoc.list:__concat}
+
+: Compares two lists for equality. The lists are taken as equal
+ if and only if they are of the same type (i.e., have the same
+ non-nil metatable), have the same length, and if all elements
+ are equal.
+
+ Parameters:
+
+ `a`, `b`:
+ : any Lua object
+
+ Returns:
+
+ - `true` if the two lists are equal, `false` otherwise.
+
## Methods
[`pandoc.List:clone ()`]{#pandoc.list:clone}