bugfix for message.md_text

didn`t work for italic and underline
This commit is contained in:
twistfire92 2021-09-22 08:56:55 +03:00 committed by GitHub
parent e5cce6edf8
commit e95ca31af2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}~"