Merge pull request #30 from surik00/dev-1.x

New markdown method - hide_link
This commit is contained in:
Alex Root Junior 2018-04-01 16:28:43 +03:00 committed by GitHub
commit bddfe5055f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -185,3 +185,14 @@ def escape_md(*content, sep=' '):
:return:
"""
return _escape(_join(*content, sep=sep))
def hide_link(url):
"""
Hide URL (HTML only)
Can be used for adding an image to a text message
:param url:
:return:
"""
return f'<a href="{url}">&#8203;</a>'