summaryrefslogtreecommitdiff
path: root/test/lua/strmacro.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/lua/strmacro.lua')
-rw-r--r--test/lua/strmacro.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/lua/strmacro.lua b/test/lua/strmacro.lua
new file mode 100644
index 000000000..a2711798a
--- /dev/null
+++ b/test/lua/strmacro.lua
@@ -0,0 +1,11 @@
+return {
+ {
+ Str = function (elem)
+ if elem.text == "{{helloworld}}" then
+ return pandoc.Emph {pandoc.Str "Hello, World"}
+ else
+ return elem
+ end
+ end,
+ }
+}