pyrofork: docs: Add warning regarding markdown text formatting

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2025-03-08 20:16:00 +07:00
parent c4b587b493
commit 4926eda4c5
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5

View file

@ -47,6 +47,12 @@ list of the basic styles currently supported by Pyrofork.
Markdown Style
--------------
.. warning::
The Markdown style is not recommended for complex text formatting.
If you want to use complex text formatting such as nested entities, overlapping entities use the HTML style instead.
To strictly use this mode, pass :obj:`~pyrogram.enums.ParseMode.MARKDOWN` to the *parse_mode* parameter when using
:meth:`~pyrogram.Client.send_message`. Use the following syntax in your message:
@ -230,7 +236,7 @@ strike` styles, and you can still combine both Markdown and HTML together.
Here there are some example texts you can try sending:
**Markdown**:
**Markdown (Not Recommended)**:
- ``**bold, --underline--**``
- ``**bold __italic --underline ~~strike~~--__**``