mirror of
https://github.com/jgm/pandoc.git
synced 2026-07-10 19:37:12 +00:00
5be9052f5f
The flag 'lua53` must now be used with that package if pandoc is to be compiled against Lua 5.3.
12 lines
179 B
Lua
12 lines
179 B
Lua
local num_blocks = 0
|
|
|
|
function Block(el)
|
|
num_blocks = num_blocks + 1
|
|
end
|
|
|
|
function Pandoc(blocks, meta)
|
|
return pandoc.Pandoc {
|
|
pandoc.Para{pandoc.Str(num_blocks)}
|
|
}
|
|
end
|