Use f-strings, add missing classes.

This commit is contained in:
Benedikt Willi 2023-08-08 15:58:56 +02:00
parent 745056d5e6
commit 79c7c2f060

View file

@ -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