aboutsummaryrefslogtreecommitdiff
path: root/data/sample.lua
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-11-29 10:42:05 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2018-11-29 10:42:05 -0800
commit642c022d816a88bd877b9f63819db7c4187f0c0b (patch)
tree6121385757c2d419c9736c0cfbb7b1a2cd556604 /data/sample.lua
parent77a40d6f341933b136c6ddd54f2568152b4b31ef (diff)
downloadpandoc-642c022d816a88bd877b9f63819db7c4187f0c0b.tar.gz
sample.lua: add SingleQuoted, DoubleQuoted.
Closes #5104.
Diffstat (limited to 'data/sample.lua')
-rw-r--r--data/sample.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/sample.lua b/data/sample.lua
index 9d6bf0fc7..86f95c860 100644
--- a/data/sample.lua
+++ b/data/sample.lua
@@ -164,6 +164,14 @@ function DisplayMath(s)
return "\\[" .. escape(s) .. "\\]"
end
+function SingleQuoted(s)
+ return "&lsquo;" .. s .. "&rsquo;"
+end
+
+function DoubleQuoted(s)
+ return "&ldquo;" .. s .. "&rdquo;"
+end
+
function Note(s)
local num = #notes + 1
-- insert the back reference right before the final closing tag.