Forgot to escape backticks.

This commit is contained in:
Rapptz 2019-04-07 00:46:15 -04:00
parent 4d06879669
commit 7b95611e62

View File

@ -405,7 +405,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>[_\\~|\*`])'
if ignore_links:
regex = '(?:%s|%s)' % (url_regex, regex)
return re.sub(regex, replacement, text)