Browse Source

Fix up previous PR mistake with intentional backslashes

pull/6457/head
Rapptz 4 years ago
parent
commit
abfc07f968
  1. 4
      discord/utils.py

4
discord/utils.py

@ -492,8 +492,8 @@ def escape_markdown(text, *, as_needed=False, ignore_links=True):
as_needed: :class:`bool` as_needed: :class:`bool`
Whether to escape the markdown characters as needed. This Whether to escape the markdown characters as needed. This
means that it does not escape extraneous characters if it's means that it does not escape extraneous characters if it's
not necessary, e.g. ``**hello**`` is escaped into ``**hello**`` not necessary, e.g. ``**hello**`` is escaped into ``\*\*hello**``
instead of ``**hello**``. Note however that this can open instead of ``\*\*hello\*\*``. Note however that this can open
you up to some clever syntax abuse. Defaults to ``False``. you up to some clever syntax abuse. Defaults to ``False``.
ignore_links: :class:`bool` ignore_links: :class:`bool`
Whether to leave links alone when escaping markdown. For example, Whether to leave links alone when escaping markdown. For example,

Loading…
Cancel
Save