improve InstallGentoo embedding

This commit is contained in:
ccd0 2014-08-24 12:21:53 -07:00
parent 67efff9dd1
commit 3bc0fa4b32

View File

@ -251,7 +251,7 @@ Linkify =
$.el 'div', <%= html('<a target="_blank" href="${a.href}"><img src="${a.href}"></a>') %>
,
key: 'InstallGentoo'
regExp: /^\w+:\/\/paste\.installgentoo\.com\/view\/(\w+)/
regExp: /^\w+:\/\/paste\.installgentoo\.com\/view\/(?:raw\/|download\/|embed\/)?(\w+)/
el: (a) ->
$.el 'iframe',
src: "https://paste.installgentoo.com/view/embed/#{a.dataset.uid}"