summaryrefslogtreecommitdiff
path: root/test/lua
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2017-04-14 23:24:52 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2017-04-14 23:43:59 +0200
commit3aeed816e163b1ad3925caff0496fa05a63d1369 (patch)
tree7042a865cdb02886c36fa1f85d53667a18467d30 /test/lua
parenteb8de6514b1ed44087a1d98a2cb8745b2903d98b (diff)
Lua filter: allow shorthand functions for math and quoted
Allow to use functions named `SingleQuoted`, `DoubleQuoted`, `DisplayMath`, and `InlineMath` in filters.
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/single-to-double-quoted.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lua/single-to-double-quoted.lua b/test/lua/single-to-double-quoted.lua
new file mode 100644
index 000000000..8a0a5732a
--- /dev/null
+++ b/test/lua/single-to-double-quoted.lua
@@ -0,0 +1,7 @@
+return {
+ {
+ SingleQuoted = function (content)
+ return pandoc.Quoted("DoubleQuote", content)
+ end,
+ }
+}