aboutsummaryrefslogtreecommitdiff
path: root/test/lua/hello-world-doc.lua
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-06-29 17:08:59 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-06-29 17:08:59 +0200
commit0f658eb46ce3630886b733e8c8ed1086af9b3510 (patch)
treefa82d125f5f28d7ab68a730ef81956031cbdbdcd /test/lua/hello-world-doc.lua
parentcb25326fa313690c3c67caa2a8b44642409fd24c (diff)
downloadpandoc-0f658eb46ce3630886b733e8c8ed1086af9b3510.tar.gz
data/pandoc.lua: regularize constructors.
We now use Pandoc instead of Doc (though Doc remains a deprecated Synonym), and we deprecate DoubleQuoted, SingleQuoted, InlineMath, and DisplayMath.
Diffstat (limited to 'test/lua/hello-world-doc.lua')
-rw-r--r--test/lua/hello-world-doc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lua/hello-world-doc.lua b/test/lua/hello-world-doc.lua
index 221321a60..62236584e 100644
--- a/test/lua/hello-world-doc.lua
+++ b/test/lua/hello-world-doc.lua
@@ -1,10 +1,10 @@
return {
{
- Doc = function(doc)
+ Pandoc = function(doc)
local meta = {}
local hello = { pandoc.Str "Hello,", pandoc.Space(), pandoc.Str "World!" }
local blocks = { pandoc.Para(hello) }
- return pandoc.Doc(blocks, meta)
+ return pandoc.Pandoc(blocks, meta)
end
}
}