mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 09:58:06 +00:00
Make code Python 3 compatible.
Make convert_html_to_markdown function Python 3 compatible.
This commit is contained in:
@@ -515,4 +515,4 @@ def convert_html_to_markdown(html):
|
|||||||
# form `` into
|
# form `` into
|
||||||
# `[image.png](http://foo.com/image.png)`.
|
# `[image.png](http://foo.com/image.png)`.
|
||||||
return re.sub(r"!\[\]\((\S*)/(\S*)\?(\S*)\)",
|
return re.sub(r"!\[\]\((\S*)/(\S*)\?(\S*)\)",
|
||||||
r"[\2](\1/\2)", markdown).decode("utf-8")
|
r"[\2](\1/\2)", markdown.decode('utf-8'))
|
||||||
|
|||||||
Reference in New Issue
Block a user