mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Wed Dec 25 03:20:19 EET 2024
Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
parent
7fc25516fd
commit
be725528ab
1 changed files with 1 additions and 1 deletions
|
@ -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>'
|
||||||
|
|
Loading…
Add table
Reference in a new issue