File: implicit-doc-filter.lua

package info (click to toggle)
haskell-pandoc-lua-engine 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 732 kB
  • sloc: haskell: 4,518; makefile: 3
file content (6 lines) | stat: -rw-r--r-- 198 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
function Pandoc (doc)
  local meta = {}
  local hello = { pandoc.Str "Hello,", pandoc.Space(), pandoc.Str "World!" }
  local blocks = { pandoc.Para(hello) }
  return pandoc.Pandoc(blocks, meta)
end