diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/upd8.js | 9 |
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') { |