aboutsummaryrefslogtreecommitdiff
path: root/test/lua/hello-world-doc.lua
blob: 62236584e6b7e6d3dbc4f60113f4c290f7b4c0c1 (plain)
1
2
3
4
5
6
7
8
9
10
return {
  {
    Pandoc = function(doc)
      local meta = {}
      local hello = { pandoc.Str "Hello,", pandoc.Space(), pandoc.Str "World!" }
      local blocks = { pandoc.Para(hello) }
      return pandoc.Pandoc(blocks, meta)
    end
  }
}