From 07bc7a4c8f2e834e0f8150de004c1f8fd98a3d60 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 29 Dec 2011 15:07:01 -0500 Subject: Fixed #70. Empty anglebrackets '<>' are now properly recognized as raw html. --- markdown/preprocessors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3