diff options
author | Alexander Krotov <ilabdsf@gmail.com> | 2018-04-29 16:20:38 +0300 |
---|---|---|
committer | Alexander Krotov <ilabdsf@gmail.com> | 2018-04-29 16:20:38 +0300 |
commit | 4139e3e92b9ee88bd3e689e06113c96726988dae (patch) | |
tree | 664c9acc4abe1d92973067aa80775ff0d434c1a9 /test/lua | |
parent | 5ce91a7e01ba3d9362d91c838052e33729efd6ec (diff) | |
download | pandoc-4139e3e92b9ee88bd3e689e06113c96726988dae.tar.gz |
Test Lua filter converting display math to inline math
Diffstat (limited to 'test/lua')
-rw-r--r-- | test/lua/math.lua | 10 |
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, + } +} |