Tweak the template filter for inline imgs
This commit is contained in:
parent
6a40e7d7f2
commit
1227dd5236
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue