aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2012-01-20 04:32:54 -0500
committerWaylan Limberg <waylan@gmail.com>2012-01-20 04:32:54 -0500
commite484f31b7b416fab2ea8b3cdeec89ac81854f73e (patch)
treef363cb34666ac2cb0d58d39e0682e4b39219ba94
parent0735b01dd9ab63417b1e9ee204d6090257cb8dbe (diff)
downloadmarkdown-e484f31b7b416fab2ea8b3cdeec89ac81854f73e.tar.gz
markdown-e484f31b7b416fab2ea8b3cdeec89ac81854f73e.tar.bz2
markdown-e484f31b7b416fab2ea8b3cdeec89ac81854f73e.zip
Always use Markdown's serializers.
Not only does this ensure that all output matches the output_format, but it is nessecary to run in Python 3.
-rw-r--r--markdown/inlinepatterns.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/inlinepatterns.py b/markdown/inlinepatterns.py
index 5e923e9..6cb4bdc 100644
--- a/markdown/inlinepatterns.py
+++ b/markdown/inlinepatterns.py
@@ -284,7 +284,7 @@ class HtmlPattern(Pattern):
value = stash.get(id)
if value is not None:
try:
- return util.etree.tostring(value)
+ return self.markdown.serializer(value)
except:
return '\%s' % value