From e6a536befcfd433aba66a3085e62792383867695 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Sat, 15 Apr 2017 21:40:48 +0200 Subject: Lua filter: revert to non-destructuring filters We want to provide an interface familiar to users of other filtering libraries. --- test/lua/strmacro.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/lua/strmacro.lua') 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, } -- cgit v1.2.3