mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
bugfix for message.md_text
didn`t work for italic and underline
This commit is contained in:
parent
e5cce6edf8
commit
e95ca31af2
1 changed files with 2 additions and 2 deletions
|
|
@ -179,7 +179,7 @@ class MarkdownDecoration(TextDecoration):
|
|||
return f"*{value}*"
|
||||
|
||||
def italic(self, value: str) -> str:
|
||||
return f"_\r{value}_\r"
|
||||
return f"_{value}_"
|
||||
|
||||
def code(self, value: str) -> str:
|
||||
return f"`{value}`"
|
||||
|
|
@ -191,7 +191,7 @@ class MarkdownDecoration(TextDecoration):
|
|||
return f"```{language}\n{value}\n```"
|
||||
|
||||
def underline(self, value: str) -> str:
|
||||
return f"__\r{value}__\r"
|
||||
return f"__{value}__"
|
||||
|
||||
def strikethrough(self, value: str) -> str:
|
||||
return f"~{value}~"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue