mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix italic and underline decorations
This commit is contained in:
parent
7d1c8c42d3
commit
84785e4880
2 changed files with 3 additions and 3 deletions
|
|
@ -180,7 +180,7 @@ class MarkdownDecoration(TextDecoration):
|
|||
return f"*{value}*"
|
||||
|
||||
def italic(self, value: str) -> str:
|
||||
return f"_{value}_\r"
|
||||
return f"_\r{value}_\r"
|
||||
|
||||
def code(self, value: str) -> str:
|
||||
return f"`{value}`"
|
||||
|
|
@ -192,7 +192,7 @@ class MarkdownDecoration(TextDecoration):
|
|||
return f"```{language}\n{value}\n```"
|
||||
|
||||
def underline(self, value: str) -> str:
|
||||
return f"__{value}__"
|
||||
return f"__\r{value}__\r"
|
||||
|
||||
def strikethrough(self, value: str) -> str:
|
||||
return f"~{value}~"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue