Update text_decorations.py (#597)

This commit is contained in:
p82o 2021-06-06 23:08:59 +03:00 committed by GitHub
parent 5f6e5a646b
commit 02cd42a339
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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```"