Add support for python-markdown safe mode

Mark the resulting OEmbed html tags as safe so they don't get stripped
away in safe mode.
This commit is contained in:
Sami Turcotte 2015-04-03 01:22:11 -04:00
parent 4a7f2a4d46
commit 3adab335ec

View file

@ -21,7 +21,7 @@ class OEmbedLinkPattern(Pattern):
html = self.get_oembed_html_for_match(match) html = self.get_oembed_html_for_match(match)
if html is None: if html is None:
return None return None
placeholder = self.markdown.htmlStash.store(html) placeholder = self.markdown.htmlStash.store(html, True)
return placeholder return placeholder
def get_oembed_html_for_match(self, match): def get_oembed_html_for_match(self, match):