4 ms·
> If you write [here's a link](https://gmc.uy https://gmc.uy), it shows it as a link :) > The nice part? it shows it as a link for everybody, not only those wh
by danShumway 8y ago
> If you write [here's a link](https://gmc.uy https://gmc.uy), it shows it as a link :)
> The nice part? it shows it as a link for everybody, not only those who have the extension installed.
Wait, wat? I'm looking at the code[0], and this is the most surprising part of this entire project to me. Slack goes out of its way to say "we don't support Markdown because we think the link support is an exploit." But they just have an alternate, undocumented way to send links anyway?
Is that a bug on Slack's side? I'm trying the syntax format that you're casting to in DMs to myself, and it doesn't seem to work? Are they doing clientside escaping or something?
Don't get me wrong, I think the "people might phish links" excuse is kind of lame when there are multiple ways for them to mitigate that problem, I'm just very curious about how and why this works.
[0]: https://github.com/g3rv4/BetterSlack/commit/24ad3b57da7a9c9c6455a038b96a2ac44a71ac73 https://github.com/g3rv4/BetterSlack/commit/24ad3b57da7a9c9c...
- g3rv4 8y agoI guess that if they consider it a vulnerability, they're going to do the check on the server side... I really hope they don't though. If they do, I'll fix it on the extension (so only people with the extension would see the markdown links as real links). Also: to answer your question... yes, there's an undocumented way of sending them. And yes, the client escapes `<https://url.com|the https://url.com|the title>` to `<https://url.com|the https://url.com|the title>`. The format is the same format used by bots to generate links.
- Savageman 8y agoI don't think it's a bug, since they've always supported links in their Web API, both for users and bots. It just happens the Slack client doesn't use that feature.
- danShumway 8y agoHuh. They do[0]. I stand corrected. I wonder why they don't also support it for the client[1]? It can't possibly be for security if they have a workaround. I guess for whatever the same reason is that they invented their own slightly messed up version of Markdown instead of using the same format as 99% of the entire web. :/ I dunno. Glad that there's a workaround though, and that it's officially supported. [0]: https://api.slack.com/docs/message-formatting#linking_to_urls https://api.slack.com/docs/message-formatting#linking_to_url... [1]: https://get.slack.help/hc/en-us/articles/204399343-Sharing-links-in-Slack https://get.slack.help/hc/en-us/articles/204399343-Sharing-l...
- blumomo 8y agoSending <http://google.com|click me> on the iOS App works