diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 956a230da..1e92dbe6a 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -164,7 +164,7 @@ def sanitize(sanitized, alert=False, comment=False, edit=False): signal.signal(signal.SIGALRM, handler) signal.alarm(1) - if not sanitized.startswith('```') and not sanitized.startswith('
'): + if '```' not in sanitized and '' not in sanitized: sanitized = linefeeds_regex.sub(r'\1\n\n\2', sanitized) sanitized = image_regex.sub(r'\1![](\2)\4', sanitized) diff --git a/files/templates/comments.html b/files/templates/comments.html index 2f124c5bb..1ce24af81 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -822,7 +822,7 @@We're sorry something here is wrong.Please enter a reason for reporting below. - + - \ No newline at end of file + \ No newline at end of file