Merge remote-tracking branch 'HushBugger/twitter-image-embeds'
This commit is contained in:
commit
22df74d45f
@ -213,7 +213,7 @@ Embedding =
|
||||
src: a.dataset.href
|
||||
,
|
||||
key: 'image'
|
||||
regExp: /^[^?#]+\.(?:gif|png|jpg|jpeg|bmp)(?:[?#]|$)/i
|
||||
regExp: /^[^?#]+\.(?:gif|png|jpg|jpeg|bmp)(?::\w+)?(?:[?#]|$)/i
|
||||
style: ''
|
||||
el: (a) ->
|
||||
$.el 'div', <%= html('<a target="_blank" href="${a.dataset.href}"><img src="${a.dataset.href}" style="max-width: 80vw; max-height: 80vh;"></a>') %>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user