mirror of
https://github.com/Hopiu/python-markdown-oembed.git
synced 2026-03-16 22:10:24 +00:00
Update extension.py
This commit is contained in:
parent
ffbac50ce0
commit
a665517a5d
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ class OEmbedExtension(Extension):
|
|||
self.oembed_consumer = self.prepare_oembed_consumer()
|
||||
link_pattern = OEmbedLinkPattern(OEMBED_LINK_RE, md,
|
||||
self.oembed_consumer)
|
||||
md.inlinePatterns.add('oembed_link', link_pattern, '<image_link')
|
||||
md.inlinePatterns.register(link_pattern, 'oembed_link', 135)
|
||||
|
||||
def prepare_oembed_consumer(self):
|
||||
allowed_endpoints = self.getConfig('allowed_endpoints', DEFAULT_ENDPOINTS)
|
||||
|
|
|
|||
Loading…
Reference in a new issue