aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/treeprocessors.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-06-02 02:32:33 -0400
committerWaylan Limberg <waylan@gmail.com>2011-06-02 02:32:33 -0400
commit0426d274b534c7f600cd76ef4b77f4b0c62a4c93 (patch)
tree641bf1a6c39fcd8dc6e97b6cf2a93ea7c43d57a6 /markdown/treeprocessors.py
parent7f9106965c28a1780164736e33c8244a8cc1c44b (diff)
downloadmarkdown-0426d274b534c7f600cd76ef4b77f4b0c62a4c93.tar.gz
markdown-0426d274b534c7f600cd76ef4b77f4b0c62a4c93.tar.bz2
markdown-0426d274b534c7f600cd76ef4b77f4b0c62a4c93.zip
Partial fix of issue #14. hrefs (and titles) are now unescaped, but it uppears that we are loosing escaped backslashes (both in the href and in the link label in the example given in issue 14.
Diffstat (limited to 'markdown/treeprocessors.py')
-rw-r--r--markdown/treeprocessors.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/markdown/treeprocessors.py b/markdown/treeprocessors.py
index d2af0dc..4ce8166 100644
--- a/markdown/treeprocessors.py
+++ b/markdown/treeprocessors.py
@@ -56,8 +56,7 @@ class InlineProcessor(Treeprocessor):
self.__placeholder_suffix = util.ETX
self.__placeholder_length = 4 + len(self.__placeholder_prefix) \
+ len(self.__placeholder_suffix)
- self.__placeholder_re = \
- re.compile(util.INLINE_PLACEHOLDER % r'([0-9]{4})')
+ self.__placeholder_re = util.INLINE_PLACEHOLDER_RE
self.markdown = md
def __makePlaceholder(self, type):