diff options
author | Waylan Limberg <waylan@gmail.com> | 2008-08-22 18:46:17 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2008-08-22 18:46:17 -0400 |
commit | e12a10d1754a13cd3a7f5b341d26ea17035105d8 (patch) | |
tree | 8225ef06c297606159b881c49944f621013d2728 /markdown.py | |
parent | 7aab75d64c94b525427bc792088da1e3e16936cc (diff) | |
download | markdown-e12a10d1754a13cd3a7f5b341d26ea17035105d8.tar.gz markdown-e12a10d1754a13cd3a7f5b341d26ea17035105d8.tar.bz2 markdown-e12a10d1754a13cd3a7f5b341d26ea17035105d8.zip |
Improved past commit - treated safe raw html properly.
Diffstat (limited to 'markdown.py')
-rwxr-xr-x | markdown.py | 3 |
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) |