diff options
Diffstat (limited to 'test/lua')
| -rw-r--r-- | test/lua/markdown-reader.lua | 3 | ||||
| -rw-r--r-- | test/lua/plain-to-para.lua | 4 | ||||
| -rw-r--r-- | test/lua/strmacro.lua | 9 |
3 files changed, 8 insertions, 8 deletions
diff --git a/test/lua/markdown-reader.lua b/test/lua/markdown-reader.lua index 6356113ec..a72af5546 100644 --- a/test/lua/markdown-reader.lua +++ b/test/lua/markdown-reader.lua @@ -1,7 +1,6 @@ return { { - RawBlock = function (blk) - local format, content = unpack(blk.c) + RawBlock = function (format, content) if format == "markdown" then return pandoc.reader.markdown.read_block(content) else diff --git a/test/lua/plain-to-para.lua b/test/lua/plain-to-para.lua index 747257411..a11edbbe2 100644 --- a/test/lua/plain-to-para.lua +++ b/test/lua/plain-to-para.lua @@ -1,6 +1,6 @@ return { - { Plain = function (blk) - return pandoc.Para(blk.c) + { Plain = function (content) + return pandoc.Para(content) end, } } diff --git a/test/lua/strmacro.lua b/test/lua/strmacro.lua index 1b28801be..40756a476 100644 --- a/test/lua/strmacro.lua +++ b/test/lua/strmacro.lua @@ -1,10 +1,11 @@ return { - { Str = function (inline) - if inline.c == "{{helloworld}}" then + { + Str = function (str) + if str == "{{helloworld}}" then return pandoc.Emph {pandoc.Str "Hello, World"} else - return inline + return pandoc.Str(str) end - end, + end, } } |
