aboutsummaryrefslogtreecommitdiff
path: root/test/lua/block-count.lua
blob: 508b05ea8733022f01c1c8ef7d7a2ea10f664c64 (plain)
1
2
3
4
5
6
7
8
9
10
11
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