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.
This commit is contained in:
Albert Krewinkel
2021-12-09 09:22:29 -08:00
committed by John MacFarlane
parent 9cbea695c4
commit fa643ba6d7
8 changed files with 211 additions and 432 deletions
+1 -1
View File
@@ -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) }