I wanted to add an icon to links in external window (target = blank) but this icon also showed near images with an external link. So I found a way to change the display of the icon when the was followed by an And it works !
A Pen by Captain Anonymous on CodePen.