fd
This commit is contained in:
parent
05ed081938
commit
a576c9edc5
2 changed files with 1 additions and 0 deletions
|
@ -278,6 +278,7 @@ def api_comment(v):
|
|||
if not body and not request.files.get('file'): return jsonify({"error":"You need to actually write something!"}), 400
|
||||
|
||||
for i in re.finditer('^(https:\/\/.*\.(png|jpg|jpeg|gif))', body, re.MULTILINE): body = body.replace(i.group(1), f'})')
|
||||
body = body.replace("\n", "\n\n")
|
||||
with CustomRenderer(post_id=parent_id) as renderer: body_md = renderer.render(mistletoe.Document(body))
|
||||
body_html = sanitize(body_md, linkgen=True)
|
||||
|
||||
|
|
0
seed.sql
Normal file
0
seed.sql
Normal file
Loading…
Add table
Add a link
Reference in a new issue