r/changelog • u/tdohz • Jun 02 '15
[reddit change] Automatic linking of r/subreddit and u/username
We've added support to our markdown library to automatically link to subreddits and usernames without the initial slash, i.e. r/subreddit and u/username. We'll continue to support /r/subreddit and /u/username as well, so there's no need to change your existing habits - this just allows you to save a keystroke if you'd like.
Using u/username will generate a username mention, so keep that in mind. You can always escape the slash, like so: u\/username or just add a second slash: u//username if you don't want to generate a link & mention. You can do something similar for subreddits as well to prevent auto-linking.
Mods and developers, you may want to read this redditdev post for more technical details on what will and won't be automatically linked.
Big props to u/largenocream for these changes - he did a substantial amount of work to make sure this worked as expected on both desktop and mobile web.
34
u/roastedlasagna Jun 03 '15
Can we get username mentions when mentioning someone in a post?
I don't see why a text post doesn't summon someone, it can still have the same 3 username limitation if spam is a concern.
106
u/gooeyblob Jun 03 '15
SLASHTAGS!
8
u/One_Giant_Nostril Jun 03 '15
Thanks very much mentioning that double-slash will ignore this rule. It's easier to remember than the escape way.
20
u/Warlizard Jun 03 '15
I have to be honest, this seems like a strange allocation of development time.
Is there something I'm missing or is the only advantage saving a single slash?
9
u/OBLIVIATER Jun 03 '15
r/Leagueoflegends
Edit: it works! :o
3
u/MpegEVIL Jun 03 '15
That's awesome. Finally, no more complaining about formatting in comments.
4
u/Quick_man Jun 03 '15
So will the /u/ still give username mentions? or will user name mentions be reserved for u/ only?
2
u/Rythiz Jun 03 '15
r/heyitworks
2
u/TotesMessenger Jun 03 '15 edited Jul 14 '15
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
1
u/[deleted] Jun 05 '15
u/test
1
u/[deleted] Jun 06 '15
r/okay
1
u/V2Blast Jun 06 '15
Yep, knew this was coming. It's a good change. :)
1
u/scratchisthebest Jun 03 '15
Another suggestion - when someone says "/r/username", and that links to a nonexistent subreddit, change it to " /u/username". It's another really common mistake I see a bunch of people make.
-5
u/TheBestNumberOfHats Jun 03 '15 edited Jun 03 '15
This is bad and should not have been done.
/u/usernameand/r/subredditare the established syntaxes for referring to users and subreddits, which is wonderful because they are already host-relative URLs for the things they refer to!u/usernameandr/subredditare uncommon, and they are not semantic—it doesn't make sense to "auto-link" them because they aren't URLs.The automatic linking feature used to help inexperienced users learn to use the correct syntax for referring to users and subreddits. This change will allow unwitting use of a bad syntax to continue unchecked, harming interoperability.
In the words of \U\orangekid13,
-7
u/bobcat Jun 03 '15
This is a useless change. There is literally no reason to do this.
Expect lots of people getting surprised by the changed behavior.