aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2012-10-21 14:22:37 -0400
committerWaylan Limberg <waylan@gmail.com>2012-10-21 14:22:37 -0400
commit9c0959dd9b319819c13ffffbfa7185c8b9eba612 (patch)
tree19e5e268fe2bc27973c67f371ff5c6d0fcf42177
parent0541e8e76f4ad2b8bfe302238eae85a77719e249 (diff)
downloadmarkdown-9c0959dd9b319819c13ffffbfa7185c8b9eba612.tar.gz
markdown-9c0959dd9b319819c13ffffbfa7185c8b9eba612.tar.bz2
markdown-9c0959dd9b319819c13ffffbfa7185c8b9eba612.zip
Fixed #151. Raw html matching is now case-insensitive.
-rw-r--r--markdown/util.py2
-rw-r--r--tests/misc/div.html7
-rw-r--r--tests/misc/div.txt6
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_
-</div> \ No newline at end of file
+</div>
+
+<p>And now in uppercase:</p>
+<DIV>
+foo
+</DIV> \ 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_
</div>
+
+And now in uppercase:
+
+<DIV>
+foo
+</DIV>