From e12a10d1754a13cd3a7f5b341d26ea17035105d8 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 22 Aug 2008 18:46:17 -0400 Subject: Improved past commit - treated safe raw html properly. --- markdown.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'markdown.py') diff --git a/markdown.py b/markdown.py index 6bdeccb..09cfdea 100755 --- a/markdown.py +++ b/markdown.py @@ -910,8 +910,7 @@ class RawHtmlTextPostprocessor(TextPostprocessor): html = '' else: html = HTML_REMOVED_TEXT - - if not self.safeMode: + if safe or not self.safeMode: text = text.replace("

%s

" % (HTML_PLACEHOLDER % i), html + "\n") text = text.replace(HTML_PLACEHOLDER % i, html) -- cgit v1.2.3