From e5b2813bbf02710c7deb148896085a3dac4828dc Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 17 Aug 2011 11:45:54 -0400 Subject: Fixed #39. Refactored escaping so that it only escapes a predifined set of chars (the set defined by JG in the syntax rules). All other backslashes are passed through unaltered by the parser. If extensions want to add to the escapable chars, they can append to the list at markdown.ESCAPED_CHARS. --- tests/basic/backlash-escapes.html | 1 - tests/basic/backlash-escapes.txt | 2 -- 2 files changed, 3 deletions(-) (limited to 'tests/basic') diff --git a/tests/basic/backlash-escapes.html b/tests/basic/backlash-escapes.html index 876775f..e2a9445 100644 --- a/tests/basic/backlash-escapes.html +++ b/tests/basic/backlash-escapes.html @@ -9,7 +9,6 @@

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