Out of curiosity, why does [bla](ircs://chat.freenode.net/archlinux)
not produce a link? And I how can I actually make such a link work?
1 Answer
No, that is not possible and allowed protocols are restricted to HTTP(S) only.
From What HTML tags are allowed on Stack Exchange sites?
href attributes can only hold proper URL links, such as https://stackexchange.com/users/, or relative or protocol-relative URL links such as /q/3122 or //stackexchange.com/users/. They cannot hold other types of links, such as relative fragments (e.g. #3122), or protocols other than HTTP or HTTPS (e.g. javascript, ftp, or mailto): having any of these types of links in the href will result in the link being stripped out
I assume the same rules go for URLs used in CommonMark Markdown as it would be extremely weird if that would allow us to do more.
Not sure if that works for what you need it for, but you could create a code snippet that users need to run to be able to click your link, like so:
// RUN ME! by clicking the run code snippet button
<p>
<a href="ircs://chat.freenode.net/archlinux">To ArchLinux irc!</a>
</p>
<p>
<a href="news://news.example.com">Our news server!</a>
</p>
-
4That code snippet seems like major overkill. All programmers know how to copy-paste, right?– Cody Gray - on strike ModDec 5, 2020 at 14:29
-
2@CodyGray I dunno. It might be overkill but if you really want a clickable link with that protocol then this is the only option. And yes, I have the book.– reneDec 5, 2020 at 14:44
https://webchat.freenode.net/#sigrok