diff options
Diffstat (limited to 'markdown.py')
-rwxr-xr-x | markdown.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/markdown.py b/markdown.py index fca4225..6bdeccb 100755 --- a/markdown.py +++ b/markdown.py @@ -911,8 +911,9 @@ class RawHtmlTextPostprocessor(TextPostprocessor): else: html = HTML_REMOVED_TEXT - text = text.replace("<p>%s</p>" % (HTML_PLACEHOLDER % i), - html + "\n") + if not self.safeMode: + text = text.replace("<p>%s</p>" % (HTML_PLACEHOLDER % i), + html + "\n") text = text.replace(HTML_PLACEHOLDER % i, html) return text |