From 6cd0f3907988b64f14fc86344537da62ceaeca04 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 13 Jan 2011 12:29:58 +0100 Subject: added dollar to escapes --- mod/tex/context/third/rst/rst_context.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod/tex/context/third') diff --git a/mod/tex/context/third/rst/rst_context.lua b/mod/tex/context/third/rst/rst_context.lua index 5ed7812..5377d94 100644 --- a/mod/tex/context/third/rst/rst_context.lua +++ b/mod/tex/context/third/rst/rst_context.lua @@ -334,6 +334,7 @@ end -- see catc-sym.tex local escape_me = { ["&"] = [[\letterampersand ]], + ["$"] = [[\letterdollar ]], ["#"] = [[\letterhash ]], ["^"] = [[\letterhat ]], ["_"] = [[\letterunderscore ]], @@ -341,7 +342,7 @@ local escape_me = { function rst_context.escape (str) str = str:gsub("\\(.)", "%1") -- literalize escaped sequences - return str:gsub("[&#^_]", escape_me) -- escape chars with special meaning + return str:gsub("[&#^_$]", escape_me) -- escape chars with special meaning end function rst_context.joinindented (tab) -- cgit v1.2.3