diff options
author | Waylan Limberg <waylan@gmail.com> | 2010-07-06 15:43:11 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2010-07-06 15:43:11 -0400 |
commit | 03bf339b594db40592d3a4848ec1e5402a371df2 (patch) | |
tree | 5f10cca2688cc5444a52756f80e85ab5456c4099 /markdown/postprocessors.py | |
parent | 2cb9cc8e90fc54dddf844edb167321a2fd370991 (diff) | |
download | markdown-03bf339b594db40592d3a4848ec1e5402a371df2.tar.gz markdown-03bf339b594db40592d3a4848ec1e5402a371df2.tar.bz2 markdown-03bf339b594db40592d3a4848ec1e5402a371df2.zip |
Removed Global variable HTML_PLACEHOLDER. Use HtmlStash.get_placeholder(key) if you need it.
Diffstat (limited to 'markdown/postprocessors.py')
-rw-r--r-- | markdown/postprocessors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown/postprocessors.py b/markdown/postprocessors.py index b4b36de..2093289 100644 --- a/markdown/postprocessors.py +++ b/markdown/postprocessors.py @@ -48,9 +48,9 @@ class RawHtmlPostprocessor(Postprocessor): html = util.HTML_REMOVED_TEXT if safe or not self.markdown.safeMode: text = text.replace("<p>%s</p>" % - (util.HTML_PLACEHOLDER % i), + (self.markdown.htmlStash.get_placeholder(i)), html + "\n") - text = text.replace(util.HTML_PLACEHOLDER % i, + text = text.replace(self.markdown.htmlStash.get_placeholder(i), html) return text |