diff --git a/src/snek/system/template.py b/src/snek/system/template.py index 40b5f2d..d018ee8 100644 --- a/src/snek/system/template.py +++ b/src/snek/system/template.py @@ -131,11 +131,12 @@ def enrich_image_rendering(text): soup = BeautifulSoup(text, "html.parser") for element in soup.find_all("img"): if element.attrs["src"].startswith("/" ): + element.attrs["src"].append("?width=420") picture_template = f''' - {element.attrs[ + {element.attrs[ ''' element.replace_with(BeautifulSoup(picture_template, "html.parser")) return str(soup)