From 8e594ac1ad813c0d1122a216dbe8859279238964 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 27 Jul 2019 22:14:14 -0400 Subject: [PATCH] Escape quote markdown in utils.escape_markdown --- discord/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/utils.py b/discord/utils.py index 490ab7678..d53d751fe 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -441,7 +441,7 @@ def escape_markdown(text, *, as_needed=False, ignore_links=True): return is_url return '\\' + groupdict['markdown'] - regex = r'(?P[_\\~|\*`])' + regex = r'(?P[_\\~|\*`]|>(?:>>)?\s)' if ignore_links: regex = '(?:%s|%s)' % (url_regex, regex) return re.sub(regex, replacement, text)