Merge remote-tracking branch 'HushBugger/twitter-image-embeds'

This commit is contained in:
ccd0 2018-10-21 00:03:23 -07:00
commit 22df74d45f

View File

@ -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>') %>