fa643ba6d7
- `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.
6 lines
198 B
Lua
6 lines
198 B
Lua
function Pandoc (doc)
|
|
local meta = {}
|
|
local hello = { pandoc.Str "Hello,", pandoc.Space(), pandoc.Str "World!" }
|
|
local blocks = { pandoc.Para(hello) }
|
|
return pandoc.Pandoc(blocks, meta)
|
|
end
|