summaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/tex/context/third/rst/rst_context.lua3
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)