From fae63b09bb5034b961118181d80a4377d12d223b Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Thu, 23 Dec 2021 15:48:09 +0100 Subject: 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. --- doc/lua-filters.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc') 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} -- cgit v1.2.3