diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index a18c0f4558..7343ea3676 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -161,10 +161,7 @@ def sanitize(sanitized, noimages=False): sanitized = str(soup) - start = '<s>' - end = '</s>' - - if start in sanitized and end in sanitized and start in sanitized.split(end)[0] and end in sanitized.split(start)[1]: sanitized = sanitized.replace(start, '').replace(end, '') + sanitized = re.sub('\|\|(.*?)\|\|', r'\1', sanitized) for i in re.finditer("[^a]>\s*(:[!#]{0,2}\w+:\s*)+<\/", sanitized): old = i.group(0) diff --git a/files/templates/formatting.html b/files/templates/formatting.html index a0e48cf70b..83b1a32959 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -133,7 +133,7 @@ You can use Markdown formatting:
bussy > gussy