aboutsummaryrefslogtreecommitdiff
path: root/pandoc-lua-engine
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2024-09-21 08:54:05 +0200
committerAlbert Krewinkel <[email protected]>2024-09-21 10:10:35 +0200
commit05aa18420ff83ccdd03d9956b0ff65e659198826 (patch)
treebeaaf131ed5793d0522676ee6102aa43d2804d48 /pandoc-lua-engine
parent5ccf380dadec2a4b9323b2a2d2aa6efd8e7b0b03 (diff)
Lua: update List module
The module now comes with a method `:at(index[, def])` that allows to access indices, accepts negative indices to count from the end, and will return the `def` value as a default if the list has no item at the given position. Furthermore, the list constructor `pandoc.List` now accepts iterators. E.g., `pandoc.List(text:gmatch '%S+')` returns the list of words in `text`. Closes: #9835
Diffstat (limited to 'pandoc-lua-engine')
-rw-r--r--pandoc-lua-engine/pandoc-lua-engine.cabal2
1 files changed, 1 insertions, 1 deletions
diff --git a/pandoc-lua-engine/pandoc-lua-engine.cabal b/pandoc-lua-engine/pandoc-lua-engine.cabal
index 44461adf4..34a045bca 100644
--- a/pandoc-lua-engine/pandoc-lua-engine.cabal
+++ b/pandoc-lua-engine/pandoc-lua-engine.cabal
@@ -125,7 +125,7 @@ library
, lpeg >= 1.1 && < 1.2
, mtl >= 2.2 && < 2.4
, pandoc >= 3.4 && < 3.5
- , pandoc-lua-marshal >= 0.2.7 && < 0.3
+ , pandoc-lua-marshal >= 0.2.8 && < 0.3
, pandoc-types >= 1.22 && < 1.24
, parsec >= 3.1 && < 3.2
, text >= 1.1.1 && < 2.2