summaryrefslogtreecommitdiff
path: root/test/lua/hello-world-doc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/lua/hello-world-doc.lua')
-rw-r--r--test/lua/hello-world-doc.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lua/hello-world-doc.lua b/test/lua/hello-world-doc.lua
new file mode 100644
index 000000000..62236584e
--- /dev/null
+++ b/test/lua/hello-world-doc.lua
@@ -0,0 +1,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
+ }
+}