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