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.
This commit is contained in:
parent
ddd1b85608
commit
fae63b09bb
3 changed files with 17 additions and 7 deletions
|
@ -3,11 +3,6 @@ tests: True
|
||||||
flags: +embed_data_files
|
flags: +embed_data_files
|
||||||
constraints: aeson >= 2.0.1.0
|
constraints: aeson >= 2.0.1.0
|
||||||
|
|
||||||
source-repository-package
|
|
||||||
type: git
|
|
||||||
location: https://github.com/pandoc/pandoc-lua-marshal
|
|
||||||
tag: f81ec19006cc4d0476f199d1fb913bac4af0a0d8
|
|
||||||
|
|
||||||
source-repository-package
|
source-repository-package
|
||||||
type: git
|
type: git
|
||||||
location: https://github.com/jgm/texmath.git
|
location: https://github.com/jgm/texmath.git
|
||||||
|
|
|
@ -3727,6 +3727,22 @@ methods and convenience functions.
|
||||||
Returns: a new list containing all elements from list1 and
|
Returns: a new list containing all elements from list1 and
|
||||||
list2
|
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
|
## Methods
|
||||||
|
|
||||||
[`pandoc.List:clone ()`]{#pandoc.list:clone}
|
[`pandoc.List:clone ()`]{#pandoc.list:clone}
|
||||||
|
|
|
@ -26,6 +26,7 @@ extra-deps:
|
||||||
- lua-2.0.2
|
- lua-2.0.2
|
||||||
- tasty-hslua-1.0.0
|
- tasty-hslua-1.0.0
|
||||||
- tasty-lua-1.0.0
|
- tasty-lua-1.0.0
|
||||||
|
- pandoc-lua-marshal-0.1.3
|
||||||
- pandoc-types-1.22.1
|
- pandoc-types-1.22.1
|
||||||
- commonmark-0.2.1.1
|
- commonmark-0.2.1.1
|
||||||
- commonmark-extensions-0.2.2.1
|
- commonmark-extensions-0.2.2.1
|
||||||
|
@ -37,8 +38,6 @@ extra-deps:
|
||||||
commit: 46df85d747f4f233157d3476683264232a4f58be
|
commit: 46df85d747f4f233157d3476683264232a4f58be
|
||||||
- git: https://github.com/jgm/ipynb.git
|
- git: https://github.com/jgm/ipynb.git
|
||||||
commit: 00246af10885c2ad4413ace4f69a7e6c88297a08
|
commit: 00246af10885c2ad4413ace4f69a7e6c88297a08
|
||||||
- git: https://github.com/pandoc/pandoc-lua-marshal
|
|
||||||
commit: f81ec19006cc4d0476f199d1fb913bac4af0a0d8
|
|
||||||
- git: https://github.com/jgm/commonmark-hs
|
- git: https://github.com/jgm/commonmark-hs
|
||||||
commit: 4d460b206e0b1872376db86cadf7a4567eeddaed
|
commit: 4d460b206e0b1872376db86cadf7a4567eeddaed
|
||||||
subdir: commonmark-pandoc
|
subdir: commonmark-pandoc
|
||||||
|
|
Loading…
Add table
Reference in a new issue