Use positional only format.

This commit is contained in:
Alex Root Junior 2017-07-25 04:45:33 +03:00
parent ea611e9fc9
commit 92253ba77a
7 changed files with 38 additions and 20 deletions

View file

@ -64,11 +64,11 @@ def hpre(*content, sep='\n'):
def link(title, url):
return f"[{_escape(title)}]({url})"
return "[{0}]({1})".format(_escape(title), url)
def hlink(title, url):
return f"<a href=\"{url}\">{_escape(title)}</a>"
return "<a href=\"{0}\">{1}</a>".format(url, _escape(title))
def escape_md(*content, sep=' '):