Skip to content

Commit ebaf1a2

Browse files
committed
Change markdown spoiler delimiter
1 parent f662519 commit ebaf1a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/source/topics/text-formatting.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ To strictly use this mode, pass "markdown" to the *parse_mode* parameter when us
6464
6565
~~strike~~
6666
67-
##spoiler##
67+
||spoiler||
6868
6969
[text URL](https://docs.pyrogram.org/)
7070
@@ -89,7 +89,7 @@ To strictly use this mode, pass "markdown" to the *parse_mode* parameter when us
8989
"__italic__, "
9090
"--underline--, "
9191
"~~strike~~, "
92-
"##spoiler##, "
92+
"||spoiler||, "
9393
"[mention](tg://user?id=23122162), "
9494
"[URL](https://pyrogram.org), "
9595
"`code`, "

pyrogram/parser/markdown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
ITALIC_DELIM = "__"
2929
UNDERLINE_DELIM = "--"
3030
STRIKE_DELIM = "~~"
31-
SPOILER_DELIM = "##"
31+
SPOILER_DELIM = "||"
3232
CODE_DELIM = "`"
3333
PRE_DELIM = "```"
3434

0 commit comments

Comments
 (0)