aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-12-29 15:07:01 -0500
committerWaylan Limberg <waylan@gmail.com>2011-12-29 15:07:01 -0500
commit07bc7a4c8f2e834e0f8150de004c1f8fd98a3d60 (patch)
treef16be0267ee6766dd91d95b146d4d402d5755df9
parent566b4ed42c6df79cddedf3cd436fb8d31af22600 (diff)
downloadmarkdown-07bc7a4c8f2e834e0f8150de004c1f8fd98a3d60.tar.gz
markdown-07bc7a4c8f2e834e0f8150de004c1f8fd98a3d60.tar.bz2
markdown-07bc7a4c8f2e834e0f8150de004c1f8fd98a3d60.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):