mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix markdown spoiler (#1176)
* Fix spoiler * added a explanation * Updated the TestTextDecoration.test_apply_single_entity --------- Co-authored-by: = <=>
This commit is contained in:
parent
68a6c2c192
commit
c418689dc1
3 changed files with 3 additions and 2 deletions
|
|
@ -233,7 +233,7 @@ class MarkdownDecoration(TextDecoration):
|
|||
return f"~{value}~"
|
||||
|
||||
def spoiler(self, value: str) -> str:
|
||||
return f"|{value}|"
|
||||
return f"||{value}||"
|
||||
|
||||
def quote(self, value: str) -> str:
|
||||
return re.sub(pattern=self.MARKDOWN_QUOTE_PATTERN, repl=r"\\\1", string=value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue