This commit is contained in:
Aevann1 2021-11-04 17:20:10 +02:00
parent fe551f0700
commit 14b8fb0f6b
6 changed files with 12 additions and 27 deletions

View file

@ -666,7 +666,6 @@ def submit_post(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)
options = []
for i in re.finditer('\s*\$\$([^\$\n]+)\$\$\s*', body):