aboutsummaryrefslogtreecommitdiff
path: root/test/lua
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-06-29 15:47:27 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-06-29 15:47:27 +0200
commit780a65f8a87b40d1a9ee269cd7a51699c42d497e (patch)
tree4f29902be768e6f702226ce7a546748e2391a268 /test/lua
parent5c80aca0e20492eaa31b9280fb5524d76f5e8098 (diff)
downloadpandoc-780a65f8a87b40d1a9ee269cd7a51699c42d497e.tar.gz
Lua filters: Remove special treatment of Quoted, Math.
No more SingleQuoted, DoubleQuoted, InlineMath, DisplayMath. This makes everything uniform and predictable, though it does open up a difference btw lua filters and custom writers.
Diffstat (limited to 'test/lua')
-rw-r--r--test/lua/single-to-double-quoted.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lua/single-to-double-quoted.lua b/test/lua/single-to-double-quoted.lua
index 45c184c95..b985b215c 100644
--- a/test/lua/single-to-double-quoted.lua
+++ b/test/lua/single-to-double-quoted.lua
@@ -1,7 +1,9 @@
return {
{
- SingleQuoted = function (elem)
- elem.quotetype = "DoubleQuote"
+ Quoted = function (elem)
+ if elem.quotetype == "SingleQuote" then
+ elem.quotetype = "DoubleQuote"
+ end
return elem
end,
}