fd
This commit is contained in:
parent
b05fa54689
commit
c573bd2fff
1 changed files with 0 additions and 1 deletions
|
@ -237,7 +237,6 @@ def edit_post(pid, v):
|
||||||
|
|
||||||
body = request.form.get("body", "")
|
body = request.form.get("body", "")
|
||||||
for i in re.finditer('^(https:\/\/.*\.(png|jpg|jpeg|gif|PNG|JPG|JPEG|GIF|9999))', body, re.MULTILINE): body = body.replace(i.group(1), f'})')
|
for i in re.finditer('^(https:\/\/.*\.(png|jpg|jpeg|gif|PNG|JPG|JPEG|GIF|9999))', body, re.MULTILINE): body = body.replace(i.group(1), f'})')
|
||||||
body = body.replace("\n", "\n\n").replace("\n\n\n\n\n\n", "\n\n").replace("\n\n\n\n", "\n\n").replace("\n\n\n", "\n\n")
|
|
||||||
with CustomRenderer() as renderer: body_md = renderer.render(mistletoe.Document(body))
|
with CustomRenderer() as renderer: body_md = renderer.render(mistletoe.Document(body))
|
||||||
body_html = sanitize(body_md)
|
body_html = sanitize(body_md)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue