aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/util.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2010-10-29 21:37:59 -0400
committerWaylan Limberg <waylan@gmail.com>2010-10-29 21:37:59 -0400
commitd4294e1250fac05645ffabb998245c5870a4af8c (patch)
tree82d8e9f860eb3e289e1f4e6209700f38071cd327 /markdown/util.py
parent3740aefd95f6a35d357ef78d3e4966ffd1baf388 (diff)
downloadmarkdown-d4294e1250fac05645ffabb998245c5870a4af8c.tar.gz
markdown-d4294e1250fac05645ffabb998245c5870a4af8c.tar.bz2
markdown-d4294e1250fac05645ffabb998245c5870a4af8c.zip
Fixed Ticket 80. Added support for ElementTree Comments to be included by third party extensions when using cElementTree.
Diffstat (limited to 'markdown/util.py')
-rw-r--r--markdown/util.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/markdown/util.py b/markdown/util.py
index f41469b..fa50e83 100644
--- a/markdown/util.py
+++ b/markdown/util.py
@@ -51,6 +51,8 @@ AUXILIARY GLOBAL FUNCTIONS
def isBlockLevel(tag):
"""Check if the tag is a block level HTML tag."""
+ if tag is etree.Comment:
+ return True
return BLOCK_LEVEL_ELEMENTS.match(tag)
"""