aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-12-30 04:07:01 +0800
committerMike Dirolf <mike@dirolf.com>2012-01-15 00:45:37 +0800
commit5f959a21dac3a0245630a201f11fe95fb43c725f (patch)
treeb8aac1977335a6f96de6b713786bf60f5a746b47
parentf3959302ef1ffa5ea3811a92ef97903320331020 (diff)
downloadmarkdown-5f959a21dac3a0245630a201f11fe95fb43c725f.tar.gz
markdown-5f959a21dac3a0245630a201f11fe95fb43c725f.tar.bz2
markdown-5f959a21dac3a0245630a201f11fe95fb43c725f.zip
Fixed #70. Empty anglebrackets '<>' are now properly recognized as raw html.
-rw-r--r--markdown/preprocessors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/preprocessors.py b/markdown/preprocessors.py
index b59f057..28f731f 100644
--- a/markdown/preprocessors.py
+++ b/markdown/preprocessors.py
@@ -78,7 +78,7 @@ class HtmlBlockPreprocessor(Preprocessor):
attrs[ma.group('attr2').strip()] = ""
return tag, len(m.group(0)), attrs
else:
- tag = block[1:].replace(">", " ", 1).split()[0].lower()
+ tag = block[1:].split(">", 1)[0].lower()
return tag, len(tag)+2, {}
def _recursive_tagfind(self, ltag, rtag, start_index, block):