« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 1262fc1a..96fb3106 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -599,6 +599,15 @@ function transformMultiline(text, {
                 inBlockquote = false;
                 outLines.push('</blockquote>');
             }
+
+            // let some escaped symbols display as the normal symbol, since the
+            // point of escaping them is just to avoid having them be treated as
+            // syntax markers!
+            if (lineContent.match(/( *)\\-/)) {
+                lineContent = lineContent.replace('\\-', '-');
+            } else if (lineContent.match(/( *)\\>/)) {
+                lineContent = lineContent.replace('\\>', '>');
+            }
         }
 
         if (lineTag === 'p') {