aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-12-06 16:55:19 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2021-12-09 09:22:29 -0800
commitfa643ba6d78fd97f0a779840dca32bfea3b296f8 (patch)
treed99ad99d9cc9e7716790e2bb91eb79a7c235a4f7 /test
parent9cbea695c439dd04c9a670107ec729c503d5b368 (diff)
downloadpandoc-fa643ba6d78fd97f0a779840dca32bfea3b296f8.tar.gz
Lua: update to latest pandoc-lua-marshal (0.1.1)
- `walk` methods are added to `Block` and `Inline` values; the methods are similar to `pandoc.utils.walk_block` and `pandoc.utils.walk_inline`, but apply to filter also to the element itself, and therefore return a list of element instead of a single element. - Functions of name `Doc` are no longer accepted as alternatives for `Pandoc` filter functions. This functionality was undocumented.
Diffstat (limited to 'test')
-rw-r--r--test/lua/implicit-doc-filter.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lua/implicit-doc-filter.lua b/test/lua/implicit-doc-filter.lua
index 253462d1c..f053dc1b2 100644
--- a/test/lua/implicit-doc-filter.lua
+++ b/test/lua/implicit-doc-filter.lua
@@ -1,4 +1,4 @@
-function Doc (doc)
+function Pandoc (doc)
local meta = {}
local hello = { pandoc.Str "Hello,", pandoc.Space(), pandoc.Str "World!" }
local blocks = { pandoc.Para(hello) }