mirror of
https://github.com/Hopiu/python-markdown-oembed.git
synced 2026-03-16 22:10:24 +00:00
Use f-strings, add missing classes.
This commit is contained in:
parent
745056d5e6
commit
79c7c2f060
1 changed files with 1 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ class OEmbedLinkPattern(Pattern):
|
||||||
if html is None:
|
if html is None:
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
html = "<figure class=\"oembed\">%s</figure>" % html
|
html = f'<figure class="oembed ratio ratio-16x9">{ html }</figure>'
|
||||||
placeholder = self.md.htmlStash.store(html)
|
placeholder = self.md.htmlStash.store(html)
|
||||||
return placeholder
|
return placeholder
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue