git.iko.soy/typeable/pandoc
on master help sign in
sample.lua: add SingleQuoted, DoubleQuoted.

Closes #5104.

commit642c022d816a88bd877b9f63819db7c4187f0c0b authorJohn MacFarlane <jgm@berkeley.edu> dateThu 29 Nov 2018, 10:42 (8 years ago) parent77a40d6
1 file changed+8
data/sample.lua+8
data/sample.lua+8
@@ -164,6 +164,14 @@ function DisplayMath(s)
164164 return "\\[" .. escape(s) .. "\\]"
165165end
166166
167+function SingleQuoted(s)
168+ return "&lsquo;" .. s .. "&rsquo;"
169+end
170+
171+function DoubleQuoted(s)
172+ return "&ldquo;" .. s .. "&rdquo;"
173+end
174+
167175function Note(s)
168176 local num = #notes + 1
169177 -- insert the back reference right before the final closing tag.