aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/inlinepatterns.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2014-01-09 22:41:30 -0500
committerWaylan Limberg <waylan@gmail.com>2014-01-09 22:41:30 -0500
commitf1cb6743891ffd3f38ca0bf6a0c94210e7730361 (patch)
tree678ee16a00f0ec40bbc7ff5969f722d3b8c9a149 /markdown/inlinepatterns.py
parent88f75ee760bb92e51fc64c3805a73b8be896e641 (diff)
downloadmarkdown-f1cb6743891ffd3f38ca0bf6a0c94210e7730361.tar.gz
markdown-f1cb6743891ffd3f38ca0bf6a0c94210e7730361.tar.bz2
markdown-f1cb6743891ffd3f38ca0bf6a0c94210e7730361.zip
Only escape ESCAPED_CHARS.
Leave all other chars prefaced by a backslash alone. Fixes #242. Not sure why I thought that I needed to add another backslash. Thanks for the report and the test case @mhubig.
Diffstat (limited to 'markdown/inlinepatterns.py')
-rw-r--r--markdown/inlinepatterns.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/inlinepatterns.py b/markdown/inlinepatterns.py
index bd3d17b..c0bd3d1 100644
--- a/markdown/inlinepatterns.py
+++ b/markdown/inlinepatterns.py
@@ -231,7 +231,7 @@ class EscapePattern(Pattern):
if char in self.markdown.ESCAPED_CHARS:
return '%s%s%s' % (util.STX, ord(char), util.ETX)
else:
- return '\\%s' % char
+ return None
class SimpleTagPattern(Pattern):