aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/postprocessors.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2010-07-06 15:43:11 -0400
committerWaylan Limberg <waylan@gmail.com>2010-07-06 15:43:11 -0400
commit03bf339b594db40592d3a4848ec1e5402a371df2 (patch)
tree5f10cca2688cc5444a52756f80e85ab5456c4099 /markdown/postprocessors.py
parent2cb9cc8e90fc54dddf844edb167321a2fd370991 (diff)
downloadmarkdown-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.py4
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