aboutsummaryrefslogtreecommitdiff
path: root/zzcxz.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'zzcxz.cgi')
-rwxr-xr-xzzcxz.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/zzcxz.cgi b/zzcxz.cgi
index 7fc0724..797f2ea 100755
--- a/zzcxz.cgi
+++ b/zzcxz.cgi
@@ -199,6 +199,9 @@ local function convert_markup(m)
table.insert(result, '<pre><code>')
code_block = true
else
+ line = line:gsub("\\\\([%[%]])", "&#92;%1")
+ line = line:gsub("\\([%[%]])",
+ { ['['] = "&#91;", [']'] = "&#93;" })
line = line:gsub("%[(.-)%]",
function(s)
return ('<span class="important">%s</span>'):format(s)