3 ms·
How about altering how the Markdown would be rendered? E.g., the previously mentioned input: [Check this cool similar new app out HN](http:/not.suspicious.
by KronisLV 5y ago
How about altering how the Markdown would be rendered?
E.g., the previously mentioned input:
[Check this cool similar new app out HN](http:/not.suspicious.com/nor/has/tracking)
Could be rendered as:
<a class="link-display" href="http:/not.suspicious.com/nor/has/tracking">Check this cool similar new app out HN</a>
<span class="link-content">[not.suspicious.com]</span>
.link-display {
/* Whatever styling you want for the link itself. */
font-weight: bold;
}
.link-content {
/* A more in-your-face helper that shows at least the domain. */
font-style: italic;
opacity: 0.5;
}
Example: https://jsfiddle.net/upb7o0zm/ https://jsfiddle.net/upb7o0zm/
- littlestymaar 5y agoI'm not sure if the markdown spec mandate what the output should be, but I indeed love you idea!
- Arnavion 5y agoCopy-paste-friendly version: <a class="link-display" data-host="not.suspicious.com" href="http://not.suspicious.com/nor/has/tracking">Check this cool similar new app out HN</a> .link-display:after { content: " [" attr(data-host) "]"; }