User Overgrow wants to mark external links with an arrow using CSS and asks if modifying ES6 functions is necessary. Mittineague suggests a CSS-only solution by targeting a[rel="nofollow"] elements.
Hello,
I’d like to mark external links (links except from own domain) with an arrow through css.. Do I need to modify all es6 functions that parse links or is there simple way?
if (DiscourseURL.isInternal(href))
Also I’m not sure if this is definitive list of sources where links are parsed and styled
_showLinkCounts() in /app/assets/javascripts/discourse/widgets/post-cooked.js.es6
linkHtml(link) in app/assets/javascripts/discourse/widgets/post-links.js.es6
html(attrs, state) in /app/assets/javascripts/discourse/widgets/topic-map.js.es6