aboutsummaryrefslogtreecommitdiff
path: root/test/lua
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-04-29 16:20:38 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-04-29 16:20:38 +0300
commit4139e3e92b9ee88bd3e689e06113c96726988dae (patch)
tree664c9acc4abe1d92973067aa80775ff0d434c1a9 /test/lua
parent5ce91a7e01ba3d9362d91c838052e33729efd6ec (diff)
downloadpandoc-4139e3e92b9ee88bd3e689e06113c96726988dae.tar.gz
Test Lua filter converting display math to inline math
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/math.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lua/math.lua b/test/lua/math.lua
new file mode 100644
index 000000000..34307dd9e
--- /dev/null
+++ b/test/lua/math.lua
@@ -0,0 +1,10 @@
+return {
+ {
+ Math = function (elem)
+ if elem.mathtype == "DisplayMath" then
+ elem.mathtype = "InlineMath"
+ end
+ return elem
+ end,
+ }
+}