aboutsummaryrefslogtreecommitdiff
path: root/test/lua/strmacro.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/lua/strmacro.lua')
-rw-r--r--test/lua/strmacro.lua10
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,
+ }
+}