mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fixed escaping markdown in aiogram.utils.markdown module
This commit is contained in:
parent
f4251382e8
commit
5a9ea04efc
2 changed files with 5 additions and 4 deletions
1
CHANGES/903.bugfix.rst
Normal file
1
CHANGES/903.bugfix.rst
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Fixed escaping markdown in `aiogram.utils.markdown` module
|
||||||
|
|
@ -26,7 +26,7 @@ def bold(*content: Any, sep: str = " ") -> str:
|
||||||
:param sep:
|
:param sep:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
return markdown_decoration.bold(value=html_decoration.quote(_join(*content, sep=sep)))
|
return markdown_decoration.bold(value=markdown_decoration.quote(_join(*content, sep=sep)))
|
||||||
|
|
||||||
|
|
||||||
def hbold(*content: Any, sep: str = " ") -> str:
|
def hbold(*content: Any, sep: str = " ") -> str:
|
||||||
|
|
@ -70,7 +70,7 @@ def code(*content: Any, sep: str = " ") -> str:
|
||||||
:param sep:
|
:param sep:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
return markdown_decoration.code(value=html_decoration.quote(_join(*content, sep=sep)))
|
return markdown_decoration.code(value=markdown_decoration.quote(_join(*content, sep=sep)))
|
||||||
|
|
||||||
|
|
||||||
def hcode(*content: Any, sep: str = " ") -> str:
|
def hcode(*content: Any, sep: str = " ") -> str:
|
||||||
|
|
@ -92,7 +92,7 @@ def pre(*content: Any, sep: str = "\n") -> str:
|
||||||
:param sep:
|
:param sep:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
return markdown_decoration.pre(value=html_decoration.quote(_join(*content, sep=sep)))
|
return markdown_decoration.pre(value=markdown_decoration.quote(_join(*content, sep=sep)))
|
||||||
|
|
||||||
|
|
||||||
def hpre(*content: Any, sep: str = "\n") -> str:
|
def hpre(*content: Any, sep: str = "\n") -> str:
|
||||||
|
|
@ -160,7 +160,7 @@ def link(title: str, url: str) -> str:
|
||||||
:param url:
|
:param url:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
return markdown_decoration.link(value=html_decoration.quote(title), link=url)
|
return markdown_decoration.link(value=markdown_decoration.quote(title), link=url)
|
||||||
|
|
||||||
|
|
||||||
def hlink(title: str, url: str) -> str:
|
def hlink(title: str, url: str) -> str:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue