diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-08-27 18:46:42 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2011-08-27 18:46:42 -0400 |
commit | 67df2b582718a8cdfbe94af01419461867a7b27c (patch) | |
tree | 9273768d7b254c791176c2f691db6d53b254b9e3 | |
parent | b51f22daa98c8c484b48134fe5f1b19b7a6291c3 (diff) | |
download | markdown-67df2b582718a8cdfbe94af01419461867a7b27c.tar.gz markdown-67df2b582718a8cdfbe94af01419461867a7b27c.tar.bz2 markdown-67df2b582718a8cdfbe94af01419461867a7b27c.zip |
Added greater-than as an escaped character. Apparently markdown.pl escapes it even though it is not documented.
-rw-r--r-- | markdown/__init__.py | 2 | ||||
-rw-r--r-- | tests/basic/backlash-escapes.html | 1 | ||||
-rw-r--r-- | tests/basic/backlash-escapes.txt | 2 |
3 files changed, 4 insertions, 1 deletions
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 @@ <p>Right bracket: ]</p> <p>Left paren: (</p> <p>Right paren: )</p> +<p>Greater-than: ></p> <p>Hash: #</p> <p>Period: .</p> <p>Bang: !</p> 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: \. |