update @ Wed Dec 25 03:20:19 EET 2024

Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
Arija A. 2024-12-25 03:20:19 +02:00
parent 7fc25516fd
commit be725528ab
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A50D5B4B599AF8A2

View file

@ -882,7 +882,7 @@ class BlogRenderer(HTMLRenderer):
return f'<div class="{mistune.escape(classes)}">{text}</div>' return f'<div class="{mistune.escape(classes)}">{text}</div>'
def image(self, text: str, alt: str, type: str, width: int, height: int) -> str: def image(self, text: str, alt: str, type: str, width: int, height: int) -> str:
return f'<img title="{mistune.escape(alt)}" src="{text}" alt="{mistune.escape(alt)}" type="{type}" data-width="{width}" data-height="{height}" loading=lazy />' return f'<img title="{mistune.escape(alt)}" src="{text}" alt="{mistune.escape(alt)}" type="{type}" width="{width}" height="{height}" loading=lazy />'
def audio(self, text: str, alt: str, type: str) -> str: def audio(self, text: str, alt: str, type: str) -> str:
return f'<audio controls title="{mistune.escape(alt)}"> <source src="{text}" type="{type}" {alt} /> </audio>' return f'<audio controls title="{mistune.escape(alt)}"> <source src="{text}" type="{type}" {alt} /> </audio>'