mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +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
|
||||
# `[image.png](http://foo.com/image.png)`.
|
||||
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