aboutsummaryrefslogtreecommitdiff
path: root/test/lua/markdown-reader.lua
blob: 6356113ec1ea5884b49b6cad6557ed4a73e95521 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
return {
  {
    RawBlock = function (blk)
      local format, content = unpack(blk.c)
      if format == "markdown" then
        return pandoc.reader.markdown.read_block(content)
      else
        return blk
      end
    end,
  }
}