Follow

PSA for people posting URLs: as Mastodon servers and clients get to guess where your URLs begin and end, your safest best is to simply put them on a separate line (at the end for better legibility, for example). And most of all: no putting them in parenthesis!

ยท Amaroq ยท 4 ยท 5 ยท 7

@kensanata if only there were a way to mark links so that nobody needs to guess with some kind of text symbols. Someone should invent that.

@kensanata

And don't put them in the middle https://example.comofyoursentence

@kensanata did you have any issues with my inline links? i try to take care of proper separation but do not necessarily use a dedicated line.

@kensanata

In my opinion, surrounding URLs by angle brackets is the best way. It is defined in one of the RFC standards <tools.ietf.org/html/rfc2396>:

> In practice, URI are delimited in a variety of ways, but usually within double-quotes "test.com/", angle brackets <test.com/>, or just using whitespace:

> test.com/

> These wrappers do not form part of the URI.

PS: #orgMode recognizes this URL format.

@kensanata

But .. it looks like either #mastodon or my client app #mastalab (@tom79) is considering the ending '>' or '"' as part of the URL :/

@kaushalmodi Sure. But thatโ€™s not what Twitter, Mastodon, Google+ and others do. Most importantly, they all strip punctuation at the end. For these URLs I had to add a redirect, for example: campaignwiki.org/wiki/Planet/W campaignwiki.org/wiki/Planet/P!

@kensanata

> But thatโ€™s not what Twitter, Mastodon, Google+ and others do.

Yes, I learned that only after I typed that toot.

Mastodon is encoding the closing '>' as part of the URL.

@kensanata

Well, above RFC has been superceded by tools.ietf.org/html/rfc3986 , but that says the same thing, that URLs should be delimited by angle brackets or double quotes or whitespace.

@Gargron Can you consider making #mastodon recognize that (see Appendix C of RFC3986). See below how the ending '>' and '"' are incorrectly encoded as part of the URL:

- <tools.ietf.org/html/rfc3986>

- "tools.ietf.org/html/rfc3986"

@kaushalmodi @kensanata I would love to, but the URL matching regexes are nothing short of complicated...

@gargron Yeah, I know. We actually talked about URL matching before so I donโ€™t expect that to change. I approve of your approach to use a library. As it is, people can at least adapt even if itโ€™s not perfect. @kaushalmodi

Sign in to participate in the conversation
Octodon

Octodon is a nice general purpose instance. more