Fix markdown bug
This commit is contained in:
parent
139cb93811
commit
924f209311
1 changed files with 3 additions and 2 deletions
|
@ -82,6 +82,7 @@ def markdown(value, lazy_load=False):
|
|||
if lazy_load:
|
||||
soup = BeautifulSoup(html, features="lxml")
|
||||
for img in soup.findAll("img"):
|
||||
if img.get("src"):
|
||||
img["data-src"] = img["src"]
|
||||
img["src"] = ""
|
||||
html = str(soup)
|
||||
|
|
Loading…
Reference in a new issue