From 1e7f07f44326850b4fd2c2658c87833c91a23107 Mon Sep 17 00:00:00 2001 From: Daniil Kovalenko <40635760+WhiteMemory99@users.noreply.github.com> Date: Sun, 10 May 2020 22:40:37 +0700 Subject: [PATCH] Fix escaping issues in markdown.py --- aiogram/utils/markdown.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/aiogram/utils/markdown.py b/aiogram/utils/markdown.py index d3c8583b..b56e14b1 100644 --- a/aiogram/utils/markdown.py +++ b/aiogram/utils/markdown.py @@ -70,7 +70,7 @@ def bold(*content, sep=" "): :return: """ return markdown_decoration.bold.format( - value=html_decoration.quote(_join(*content, sep=sep)) + value=markdown_decoration.quote(_join(*content, sep=sep)) ) @@ -96,7 +96,7 @@ def italic(*content, sep=" "): :return: """ return markdown_decoration.italic.format( - value=html_decoration.quote(_join(*content, sep=sep)) + value=markdown_decoration.quote(_join(*content, sep=sep)) ) @@ -122,7 +122,7 @@ def code(*content, sep=" "): :return: """ return markdown_decoration.code.format( - value=html_decoration.quote(_join(*content, sep=sep)) + value=markdown_decoration.quote(_join(*content, sep=sep)) ) @@ -148,7 +148,7 @@ def pre(*content, sep="\n"): :return: """ return markdown_decoration.pre.format( - value=html_decoration.quote(_join(*content, sep=sep)) + value=markdown_decoration.quote(_join(*content, sep=sep)) ) @@ -225,7 +225,7 @@ def link(title: str, url: str) -> str: :param url: :return: """ - return markdown_decoration.link.format(value=html_decoration.quote(title), link=url) + return markdown_decoration.link.format(value=markdown_decoration.quote(title), link=url) def hlink(title: str, url: str) -> str: