Tweak the template filter for inline imgs

This commit is contained in:
Thomas Sileo 2019-11-01 16:19:59 +01:00
parent 6a40e7d7f2
commit 1227dd5236

View file

@ -346,7 +346,7 @@ def get_attachment_url(url, size):
@filters.app_template_filter()
def update_inline_imgs(content):
soup = BeautifulSoup(content)
soup = BeautifulSoup(content, "html5lib")
imgs = soup.find_all("img")
if not imgs:
return content