diff options
| -rw-r--r-- | discord/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/utils.py b/discord/utils.py index 490ab767..d53d751f 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<markdown>[_\\~|\*`])' + regex = r'(?P<markdown>[_\\~|\*`]|>(?:>>)?\s)' if ignore_links: regex = '(?:%s|%s)' % (url_regex, regex) return re.sub(regex, replacement, text) |