jpg in markmin autolinks, thanks Villas
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.00.0 (2012-08-05 19:46:42) dev
|
||||
Version 2.00.0 (2012-08-05 19:52:16) dev
|
||||
|
||||
@@ -543,7 +543,7 @@ def autolinks_simple(url):
|
||||
image, video or audio tag
|
||||
"""
|
||||
u_url=url.lower()
|
||||
if u_url.endswith(('jpeg','gif','png')):
|
||||
if u_url.endswith(('jpg','jpeg','gif','png')):
|
||||
return '<img src="%s" controls />' % url
|
||||
elif u_url.endswith(('mp4','mpeg','mov','ogv')):
|
||||
return '<video src="%s" controls></video>' % url
|
||||
|
||||
Reference in New Issue
Block a user