From 9c0959dd9b319819c13ffffbfa7185c8b9eba612 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sun, 21 Oct 2012 14:22:37 -0400 Subject: Fixed #151. Raw html matching is now case-insensitive. --- markdown/util.py | 2 +- tests/misc/div.html | 7 ++++++- tests/misc/div.txt | 6 ++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/markdown/util.py b/markdown/util.py index 13cbff2..db45a5e 100644 --- a/markdown/util.py +++ b/markdown/util.py @@ -20,7 +20,7 @@ BLOCK_LEVEL_ELEMENTS = re.compile("^(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul" "|hr|hr/|style|li|dt|dd|thead|tbody" "|tr|th|td|section|footer|header|group|figure" "|figcaption|aside|article|canvas|output" - "|progress|video)$") + "|progress|video)$", re.IGNORECASE) # Placeholders STX = u'\u0002' # Use STX ("Start of text") for start-of-placeholder ETX = u'\u0003' # Use ETX ("End of text") for end-of-placeholder diff --git a/tests/misc/div.html b/tests/misc/div.html index 7b68854..cb6a759 100644 --- a/tests/misc/div.html +++ b/tests/misc/div.html @@ -2,4 +2,9 @@ _foo_ - \ No newline at end of file + + +

And now in uppercase:

+
+foo +
\ No newline at end of file diff --git a/tests/misc/div.txt b/tests/misc/div.txt index ca87745..4ff972e 100644 --- a/tests/misc/div.txt +++ b/tests/misc/div.txt @@ -3,3 +3,9 @@ _foo_ + +And now in uppercase: + +
+foo +
-- cgit v1.2.3