mirror of
https://github.com/Hopiu/python-markdown-oembed.git
synced 2026-03-16 22:10:24 +00:00
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:
parent
4a7f2a4d46
commit
3adab335ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue