aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-08-22 18:46:17 -0400
committerWaylan Limberg <waylan@gmail.com>2008-08-22 18:46:17 -0400
commite12a10d1754a13cd3a7f5b341d26ea17035105d8 (patch)
tree8225ef06c297606159b881c49944f621013d2728
parent7aab75d64c94b525427bc792088da1e3e16936cc (diff)
downloadmarkdown-e12a10d1754a13cd3a7f5b341d26ea17035105d8.tar.gz
markdown-e12a10d1754a13cd3a7f5b341d26ea17035105d8.tar.bz2
markdown-e12a10d1754a13cd3a7f5b341d26ea17035105d8.zip
Improved past commit - treated safe raw html properly.
-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)