diff --git a/files/routes/comments.py b/files/routes/comments.py index 46f1a7398..3e6fe91b6 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -152,7 +152,7 @@ def api_comment(v): for i in re.finditer('^(https:\/\/.*\.(png|jpg|jpeg|gif|webp|PNG|JPG|JPEG|GIF|WEBP|9999))', body, re.MULTILINE): if "wikipedia" not in i.group(1): body = body.replace(i.group(1), f'![]({i.group(1)})') - body = re.sub('([^\n])\n([^\n])', r'\1\n\n\2', body) + # body = re.sub('([^\n])\n([^\n])', r'\1\n\n\2', body) body_md = body options = []