From 3aeed816e163b1ad3925caff0496fa05a63d1369 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 14 Apr 2017 23:24:52 +0200 Subject: Lua filter: allow shorthand functions for math and quoted Allow to use functions named `SingleQuoted`, `DoubleQuoted`, `DisplayMath`, and `InlineMath` in filters. --- test/lua/single-to-double-quoted.lua | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/lua/single-to-double-quoted.lua (limited to 'test/lua') 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, + } +} -- cgit v1.2.3