diff options
Diffstat (limited to 'test/lua/strmacro.lua')
-rw-r--r-- | test/lua/strmacro.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lua/strmacro.lua b/test/lua/strmacro.lua index 40756a476..a2711798a 100644 --- a/test/lua/strmacro.lua +++ b/test/lua/strmacro.lua @@ -1,10 +1,10 @@ return { { - Str = function (str) - if str == "{{helloworld}}" then + Str = function (elem) + if elem.text == "{{helloworld}}" then return pandoc.Emph {pandoc.Str "Hello, World"} else - return pandoc.Str(str) + return elem end end, } |