diff options
Diffstat (limited to 'test/lua/strmacro.lua')
-rw-r--r-- | test/lua/strmacro.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lua/strmacro.lua b/test/lua/strmacro.lua new file mode 100644 index 000000000..1b28801be --- /dev/null +++ b/test/lua/strmacro.lua @@ -0,0 +1,10 @@ +return { + { Str = function (inline) + if inline.c == "{{helloworld}}" then + return pandoc.Emph {pandoc.Str "Hello, World"} + else + return inline + end + end, + } +} |