markup icon indicating copy to clipboard operation
markup copied to clipboard

@mentions do not render in README.md

Open codeaholics opened this issue 13 years ago • 40 comments

@mentions (https://help.github.com/articles/github-flavored-markdown#name-and-team-mentions-autocomplete) do not render in README.md

codeaholics avatar Jul 09 '13 16:07 codeaholics

And they probably never will.

@mentions are intended to bring attention to someone to a piece of code or an issue. They're not just hot-links out to a username.

gjtorikian avatar Nov 07 '13 18:11 gjtorikian

To me another use would be easily writing out who helped in the writing of a certain piece of code, something which is done in README's too.

Haroenv avatar Jan 09 '16 22:01 Haroenv

Hm would like to see this feature. When writing documentation and talking about decisions made it would be really convenient if the links would be parsed automatically.

ChappIO avatar Jun 04 '16 08:06 ChappIO

A huge oversight IMO... it shouldn't take much to support. Why was it excluded from markdown?

idibidiart avatar Apr 14 '17 14:04 idibidiart

I ran into this issue just now. Thanks for making me wonder why the hell the Special Thanks section of my README.md wasn't working. I imagined it would be a common use case. Omitting it is an objectively controversial decision.

Also, whatever you're doing to make it not render mentions is destroying line breaks. One line rendered. Is actually three lines

Xaekai avatar Jun 09 '17 07:06 Xaekai

Does it make sense to render mentions in CREDITS.md? That's what brought me here. Should I file another issue?

dimitarg avatar Jun 17 '17 13:06 dimitarg

#1075 opened

dimitarg avatar Jun 17 '17 13:06 dimitarg

You can 'hack' it creating a Link with the label "@theuseryouwant" that redirects to the user profile, lol

hansfpc avatar Jul 18 '18 16:07 hansfpc

it would be useful to be able to mention someone in markdown, say on the wiki, if you're using the check box list, because then you assign specific people to the checkbox i.e.

  • [ ] @rosy1280 do something here

rosy1280 avatar Aug 01 '18 16:08 rosy1280

You can also use @hansfpc 's solution to do the same with linking to teams:

Replace the org name, as well as "team-name" in both spots:

[@VideoAmp/team-name]( https://github.com/orgs/VideoAmp/teams/team-name/members )

This solved my case because we just needed a way to dynamically link because team members can change. This linking not being automatic is OK, and may even be better because it would allow the same markdown linking to work if viewed outside of Github.

AuthorOfTheSurf avatar Aug 19 '18 00:08 AuthorOfTheSurf

You can also use @hansfpc 's solution to do the same with linking to teams:

Replace the org name, as well as "team-name" in both spots:

[@VideoAmp/team-name]( https://github.com/orgs/VideoAmp/teams/team-name/members )`

This solved my case because we just needed a way to dynamically link because team members can change. This linking not being automatic is OK, and may even be better because it would allow the same markdown linking to work if viewed outside of Github.

The only thing is that it missing the popover :(

Screen Shot 2019-03-28 at 17 59 05

moshfeu avatar Mar 28 '19 15:03 moshfeu

Is this not going to be included? Would be great to provide credit in README or other markdown files.

edsonayllon avatar Dec 19 '19 16:12 edsonayllon

7 y.o. issue :D

jasomdotnet avatar Feb 18 '20 21:02 jasomdotnet

I ended up using simple classical markdown linking to the contributer's name: [contributers's name](https://github.com/contributer's name)

It's a little longer but there is a short way using macros and text preprocessor.

If you use pp then you can create a simple macro to do this automatically for you. You preprocess your md file then voila!!

The idea is that you create unprocessed_README.md that declares and uses this macro. Then you call pp to generate your final README.md

I created this simple code to add to your unprocessed_README.md !define(cite_)(!1: )

This creates a new macro called cite_ that you call like this !cite_(contributer's name) whenever you want to cite a contributer.

Then you convert the file like this

pp unprocessed_README.md > README.md

To hide this unprocessed_README.md file, i put it in a misc folder. The command becomes :

pp misc/unprocessed_README.md > README.md

It is still 8 characters longer than what you asked 7 years ago, but unless github adds explicit support to this or maybe pp could add a @ internal macro, or you create your own text preprocessor that looks for words starting with @ and replace them with the code above, I don't see haw simpler can we do this.

For the record, I did use cite_ so that if your md file containes the word cite, it doesn't get converted. you can use just c or ci or whatever you want to reduce the number of characters you use.

I tried this in my QPanda3D project. The README.md you see is the final output. To see the original code, look at misc/unprocessed_README.md.

I hope this helps.

ParisNeo avatar Feb 23 '20 00:02 ParisNeo

Why can't we simply use href? pavanvamsi3

pavanvamsi3 avatar Apr 17 '20 12:04 pavanvamsi3

Why can't we simply use href? pavanvamsi3

https://github.com/github/markup/issues/209#issuecomment-477658903

moshfeu avatar Apr 17 '20 12:04 moshfeu

In case you are interested, I wrote a simple userscript which linkifies @mentions in markdown files including the popover.

https://gist.github.com/MadaraUchiha/a486bd8f93b0fc6df1bc97d9b8fca045 -- To install with userscript extensions, just click on the "Raw" button on that gist.

MadaraUchiha avatar Jun 10 '20 13:06 MadaraUchiha

How is this not a feature. Like actually, linking to profiles from a README (with a popover) would be amazing

simonwuelker avatar Oct 02 '21 22:10 simonwuelker

Once again petitioning @github to reconsider-- having @mentions in README would be an extremely helpful feature

ndrewtl avatar Jul 09 '22 01:07 ndrewtl

Indeed this would be usefull !

warstrolo avatar Aug 09 '22 08:08 warstrolo