From 0e3bf49c86b1f395c39422f77e15cc635babb5e4 Mon Sep 17 00:00:00 2001 From: Benedikt Willi Date: Tue, 16 Aug 2022 08:18:53 +0200 Subject: [PATCH] Update inlinepatterns.py --- mdx_oembed/inlinepatterns.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mdx_oembed/inlinepatterns.py b/mdx_oembed/inlinepatterns.py index ff40d15..db355bd 100644 --- a/mdx_oembed/inlinepatterns.py +++ b/mdx_oembed/inlinepatterns.py @@ -8,7 +8,7 @@ LOG = logging.getLogger(__name__) OEMBED_LINK_RE = r'\!\[([^\]]*)\]\(((?:https?:)?//[^\)]*)' \ - r'(?%s" % html - placeholder = self.markdown.htmlStash.store(html) + placeholder = self.md.htmlStash.store(html) return placeholder def get_oembed_html_for_match(self, match): url = match.group(3).strip() - LOG.warn(url) try: response = self.consumer.embed(url) except oembed.OEmbedNoEndpoint: