mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Update text_decorations.py (#597)
This commit is contained in:
parent
5f6e5a646b
commit
02cd42a339
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ class MarkdownDecoration(TextDecoration):
|
|||
return f"`{value}`"
|
||||
|
||||
def pre(self, value: str) -> str:
|
||||
return f"```{value}```"
|
||||
return f"```\n{value}\n```"
|
||||
|
||||
def pre_language(self, value: str, language: str) -> str:
|
||||
return f"```{language}\n{value}\n```"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue