Update inlinepatterns.py

This commit is contained in:
Benedikt Willi 2022-08-15 16:41:35 +02:00 committed by GitHub
parent e5d64d6853
commit d216b6eb68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,8 +13,8 @@ OEMBED_LINK_RE = r'\!\[([^\]]*)\]\(((?:https?:)?//[^\)]*)' \
class OEmbedLinkPattern(Pattern): class OEmbedLinkPattern(Pattern):
def __init__(self, pattern, markdown_instance=None, oembed_consumer=None): def __init__(self, pattern, md=None, oembed_consumer=None):
Pattern.__init__(self, pattern, markdown_instance) Pattern.__init__(self, pattern, md=md)
self.consumer = oembed_consumer self.consumer = oembed_consumer
def handleMatch(self, match): def handleMatch(self, match):