cassis icon indicating copy to clipboard operation
cassis copied to clipboard

auto_link doesn’t support protocol-relative URLs

Open barnabywalters opened this issue 10 years ago • 0 comments

Auto-linking this input:

'//example.com/photo.png'

Produces this output:

'//<a class="auto-link" href="http://example.com/photo.png">example.com/photo.png</a>'

It also re-links photo URLs inside <img> elements:

'<img src="//example.com/photo.png" alt="" />'

becomes:

'<img src="//<a class="auto-link" href="http://example.com/photo.png">example.com/photo.png</a>" alt="" />'

barnabywalters avatar Sep 16 '14 09:09 barnabywalters