From 67df2b582718a8cdfbe94af01419461867a7b27c Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sat, 27 Aug 2011 18:46:42 -0400 Subject: Added greater-than as an escaped character. Apparently markdown.pl escapes it even though it is not documented. --- markdown/__init__.py | 2 +- tests/basic/backlash-escapes.html | 1 + tests/basic/backlash-escapes.txt | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/markdown/__init__.py b/markdown/__init__.py index 2aafcf6..0f7978b 100644 --- a/markdown/__init__.py +++ b/markdown/__init__.py @@ -74,7 +74,7 @@ class Markdown: } ESCAPED_CHARS = ['\\', '`', '*', '_', '{', '}', '[', ']', - '(', ')', '#', '+', '-', '.', '!'] + '(', ')', '>', '#', '+', '-', '.', '!'] def __init__(self, *args, **kwargs): """ diff --git a/tests/basic/backlash-escapes.html b/tests/basic/backlash-escapes.html index e2a9445..ef7c4b5 100644 --- a/tests/basic/backlash-escapes.html +++ b/tests/basic/backlash-escapes.html @@ -9,6 +9,7 @@

Right bracket: ]

Left paren: (

Right paren: )

+

Greater-than: >

Hash: #

Period: .

Bang: !

diff --git a/tests/basic/backlash-escapes.txt b/tests/basic/backlash-escapes.txt index ffb3cd0..16447a0 100644 --- a/tests/basic/backlash-escapes.txt +++ b/tests/basic/backlash-escapes.txt @@ -20,6 +20,8 @@ Left paren: \( Right paren: \) +Greater-than: \> + Hash: \# Period: \. -- cgit v1.2.3