This commit is contained in:
retoor 2025-05-13 20:20:43 +02:00
parent d09055986e
commit 8cd2f16c5c

View File

@ -123,7 +123,7 @@ def embed_image(text):
".heic", ".heic",
] ]
): ):
embed_template = f'<img src="{element.attrs["href"]}" title="{element.attrs["href"]}" alt="{element.attrs["href"]}" />' embed_template = f'<img src="{element.attrs["href"]}" title="{element.attrs["href"]}?width=420" alt="{element.attrs["href"]}" />'
element.replace_with(BeautifulSoup(embed_template, "html.parser")) element.replace_with(BeautifulSoup(embed_template, "html.parser"))
return str(soup) return str(soup)