aboutsummaryrefslogtreecommitdiff
path: root/test/lua/markdown-reader.lua
blob: 1530a15a2c98040789a2af8651192bccde353517 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
return {
  {
    RawBlock = function (elem)
      if elem.format == "markdown" then
        local pd = pandoc.read(elem.text, "markdown")
        return pd.blocks[1]
      else
        return elem
      end
    end,
  }
}