diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-06-29 17:08:59 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-06-29 17:08:59 +0200 |
commit | 0f658eb46ce3630886b733e8c8ed1086af9b3510 (patch) | |
tree | fa82d125f5f28d7ab68a730ef81956031cbdbdcd /test | |
parent | cb25326fa313690c3c67caa2a8b44642409fd24c (diff) | |
download | pandoc-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')
-rw-r--r-- | test/lua/hello-world-doc.lua | 4 | ||||
-rw-r--r-- | test/lua/implicit-doc-filter.lua | 2 |
2 files changed, 3 insertions, 3 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 } } diff --git a/test/lua/implicit-doc-filter.lua b/test/lua/implicit-doc-filter.lua index 320d22105..253462d1c 100644 --- a/test/lua/implicit-doc-filter.lua +++ b/test/lua/implicit-doc-filter.lua @@ -2,5 +2,5 @@ function Doc (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 |