From c56085ee71fd67567a3d08964f7d48a93abe7fbc Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Mon, 30 Jan 2012 05:53:51 -0500 Subject: Fixed #77. util.isBlockLevel() needs to check entire tag passed to it. --- markdown/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'markdown/util.py') diff --git a/markdown/util.py b/markdown/util.py index c1bf658..998211e 100644 --- a/markdown/util.py +++ b/markdown/util.py @@ -15,12 +15,12 @@ Constants you might want to modify ----------------------------------------------------------------------------- """ -BLOCK_LEVEL_ELEMENTS = re.compile("p|div|h[1-6]|blockquote|pre|table|dl|ol|ul" +BLOCK_LEVEL_ELEMENTS = re.compile("^(p|div|h[1-6]|blockquote|pre|table|dl|ol|ul" "|script|noscript|form|fieldset|iframe|math" "|ins|del|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)$") # 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 -- cgit v1.2.1