diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-06-02 02:32:33 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2011-06-02 02:32:33 -0400 |
commit | 0426d274b534c7f600cd76ef4b77f4b0c62a4c93 (patch) | |
tree | 641bf1a6c39fcd8dc6e97b6cf2a93ea7c43d57a6 /markdown/util.py | |
parent | 7f9106965c28a1780164736e33c8244a8cc1c44b (diff) | |
download | markdown-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/util.py')
-rw-r--r-- | markdown/util.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/markdown/util.py b/markdown/util.py index 1b55de4..c1bf658 100644 --- a/markdown/util.py +++ b/markdown/util.py @@ -26,6 +26,7 @@ STX = u'\u0002' # Use STX ("Start of text") for start-of-placeholder ETX = u'\u0003' # Use ETX ("End of text") for end-of-placeholder INLINE_PLACEHOLDER_PREFIX = STX+"klzzwxh:" INLINE_PLACEHOLDER = INLINE_PLACEHOLDER_PREFIX + "%s" + ETX +INLINE_PLACEHOLDER_RE = re.compile(INLINE_PLACEHOLDER % r'([0-9]{4})') AMP_SUBSTITUTE = STX+"amp"+ETX """ |