Fix up previous PR mistake with intentional backslashes

This commit is contained in:
Rapptz 2021-02-21 07:35:31 -05:00
parent a0c1d6f6c5
commit abfc07f968

View File

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