mirror of https://github.com/zulip/zulip.git
Make code Python 3 compatible.
Make convert_html_to_markdown function Python 3 compatible.
This commit is contained in:
parent
34a251adb1
commit
f15dfc69fb
|
@ -515,4 +515,4 @@ def convert_html_to_markdown(html):
|
|||
# form `![](http://foo.com/image.png?12345)` 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'))
|
||||
|
|
Loading…
Reference in New Issue