aboutsummaryrefslogtreecommitdiffstats
path: root/markdown.py
diff options
context:
space:
mode:
authorArtem Yunusov <nedrlab@gmail.com>2008-08-24 01:23:36 +0500
committerArtem Yunusov <nedrlab@gmail.com>2008-08-24 01:23:36 +0500
commit3837019c25397d92f476225b05a4e84667dbdc5e (patch)
tree526041dae3b754d4e7baed02da625379f0762c8f /markdown.py
parent809a075453f80643ef60ed511711ac0931dc563e (diff)
downloadmarkdown-3837019c25397d92f476225b05a4e84667dbdc5e.tar.gz
markdown-3837019c25397d92f476225b05a4e84667dbdc5e.tar.bz2
markdown-3837019c25397d92f476225b05a4e84667dbdc5e.zip
more_comments test works fine now.
Diffstat (limited to 'markdown.py')
-rwxr-xr-xmarkdown.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/markdown.py b/markdown.py
index ba1c687..baa015a 100755
--- a/markdown.py
+++ b/markdown.py
@@ -365,7 +365,8 @@ class HtmlBlockPreprocessor(TextPreprocessor):
else: #if not block[1] == "!":
# if is block level tag and is not complete
- if isBlockLevel(left_tag):
+ if isBlockLevel(left_tag) or left_tag == "--" \
+ and not block.rstrip().endswith(">"):
items.append(block.strip())
in_tag = True
else: