aboutsummaryrefslogtreecommitdiffstats
path: root/markdown.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown.py')
-rwxr-xr-xmarkdown.py3
1 files changed, 1 insertions, 2 deletions
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("<p>%s</p>" % (HTML_PLACEHOLDER % i),
html + "\n")
text = text.replace(HTML_PLACEHOLDER % i, html)