diff options
author | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2011-01-13 12:29:58 +0100 |
---|---|---|
committer | Philipp Gesang <pgesang@ix.urz.uni-heidelberg.de> | 2011-01-13 12:29:58 +0100 |
commit | 6cd0f3907988b64f14fc86344537da62ceaeca04 (patch) | |
tree | eef41518dac55b98201e4bf3a03fd365a9ec1c12 /mod/tex/context/third | |
parent | 91a40ccaffce74728d109c726985f67773b0617e (diff) | |
download | context-rst-6cd0f3907988b64f14fc86344537da62ceaeca04.tar.gz |
added dollar to escapes
Diffstat (limited to 'mod/tex/context/third')
-rw-r--r-- | mod/tex/context/third/rst/rst_context.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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) |