UPdate.
This commit is contained in:
parent
d09055986e
commit
8cd2f16c5c
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user