From 3adab335ec503cb14bad71ac8e1c0ff68499bddf Mon Sep 17 00:00:00 2001 From: Sami Turcotte Date: Fri, 3 Apr 2015 01:22:11 -0400 Subject: [PATCH] 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. --- mdx_oembed/inlinepatterns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mdx_oembed/inlinepatterns.py b/mdx_oembed/inlinepatterns.py index b147d96..9f71fd3 100644 --- a/mdx_oembed/inlinepatterns.py +++ b/mdx_oembed/inlinepatterns.py @@ -21,7 +21,7 @@ class OEmbedLinkPattern(Pattern): html = self.get_oembed_html_for_match(match) if html is None: return None - placeholder = self.markdown.htmlStash.store(html) + placeholder = self.markdown.htmlStash.store(html, True) return placeholder def get_oembed_html_for_match(self, match):