jpg in markmin autolinks, thanks Villas
This commit is contained in:
1 parent
c902cd79fd
commit
4f41b672e8
2 files changed
+2
-2
No files matched your search
@@ -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