Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@mentions do not render in README.md #209

Closed
codeaholics opened this issue Jul 9, 2013 · 36 comments
Closed

@mentions do not render in README.md #209

codeaholics opened this issue Jul 9, 2013 · 36 comments

Comments

@codeaholics
Copy link

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

@gjtorikian
Copy link
Contributor

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.

@Haroenv
Copy link

Haroenv commented Jan 9, 2016

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.

@ChappIO
Copy link

ChappIO commented Jun 4, 2016

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.

@idibidiart
Copy link

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

@Xaekai
Copy link

Xaekai commented Jun 9, 2017

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 added a commit to Xaekai/PonkBot that referenced this issue Jun 9, 2017
All frames regarding emotes are done.
Updated readme yet again due to github/markup#209
@dimitarg
Copy link

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

@dimitarg
Copy link

#1075 opened

ghost pushed a commit to ntrteam/ntrboot_flasher that referenced this issue Aug 12, 2017
Unfortunately for us, GitHub explicitly rejected mentions in READMEs, github/markup#209, so here's a solution.
ghost pushed a commit to ntrteam/ntrboot_flasher that referenced this issue Aug 12, 2017
Unfortunately for us, GitHub explicitly rejected mentions in READMEs, github/markup#209, so here's a solution.
ghost pushed a commit to ntrteam/ntrboot_flasher that referenced this issue Aug 15, 2017
Unfortunately for us, GitHub explicitly rejected mentions in READMEs, github/markup#209, so here's a solution.

per #4
tswaters added a commit to tswaters/checkout-install that referenced this issue Oct 15, 2017
@hansfpc
Copy link

hansfpc commented Jul 18, 2018

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

@rosy1280
Copy link

rosy1280 commented Aug 1, 2018

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.

@AuthorOfTheSurf
Copy link

AuthorOfTheSurf commented Aug 19, 2018

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.

jtc added a commit to jtc/TASS-api-introduction that referenced this issue Mar 2, 2019
As per github/markup#209, @mentions don't work on readme files.
Therefore, added markdown links to each contributor's GitHub profile
@moshfeu
Copy link

moshfeu commented Mar 28, 2019

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

@edsonayllon
Copy link

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

@jasomdotnet
Copy link

7 y.o. issue :D

@ParisNeo
Copy link

ParisNeo commented Feb 23, 2020

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.

@pavanvamsi3
Copy link

pavanvamsi3 commented Apr 17, 2020

Why can't we simply use href? pavanvamsi3

@Wuelle
Copy link

Wuelle commented Oct 2, 2021

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

joao-paulo-parity added a commit to paritytech/pr-custom-review that referenced this issue Mar 18, 2022
Mentions don't work on GitHub according to github/markup#209 (comment)
Timothy-W-Hilton added a commit to Timothy-W-Hilton/gitsummary that referenced this issue Jun 22, 2022
@mentions [don't work in markdown files](github/markup#209)
juanrh pushed a commit to juanrh/handbook that referenced this issue Jul 1, 2022
As currently GitHub doesn't add links automatically: github/markup#209
Also replace fredbrancz handle to brancz, as fredbrancz is his twitter handle, which is also linked
in his GitHub profile
@ndrewtl
Copy link

ndrewtl commented Jul 9, 2022

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

juanrh pushed a commit to juanrh/handbook that referenced this issue Jul 29, 2022
As currently GitHub doesn't add links automatically: github/markup#209
Also replace fredbrancz handle to brancz, as fredbrancz is his twitter handle, which is also linked
in his GitHub profile
bwplotka pushed a commit to rhobs/handbook that referenced this issue Jul 29, 2022
* Link GitHub handles to GitHub profiles

As currently GitHub doesn't add links automatically: github/markup#209
Also replace fredbrancz handle to brancz, as fredbrancz is his twitter handle, which is also linked
in his GitHub profile

* Remove typo

Text added twice

* How to add yourself to @monitoring-team

* Additional instructions for requesting access to team-monitoring

* Update how to join aos-devel

aos-devel was recently moved to google groups
https://source.redhat.com/groups/public/openshift_tam_sync_up/blog/jun_13_2022_call_agena

* add missing quote
@warstrolo
Copy link

Indeed this would be usefull !

@kangalio
Copy link

@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.

I can see the philosophical reasoning but let's stay pragmatic

Advantages:

  • mentioning users in a README allows readers to immediately view the user, via click or hover over, which is very convenient
  • as consequence, user mentions will be used more often, making users more interconnected

Disadvantages:

  • @username mentions cannot be clicked outside GitHub ([@username](https://github.com/username can)
@warstrolo
Copy link

Well then when we put a link like you said, it should pop the user / organisation GitHub profile, like with the actual mention.
image

@cosmiccoincidence
Copy link

It's 2023 and I would also like this feature.

@xmaxrayx
Copy link

can you guys bring this future?

@htransteven
Copy link

+1

@shrey150
Copy link

+1 would be super useful

@reisir
Copy link

reisir commented Aug 18, 2023

Give GitHub users a unique ID (already exists in the backend I quarantee it)

Make @ mentions used in the markdown editors across github generate a link to that users profile. Like so: [GitHub user](github.com/user/25346879)

Render these links as mentions on GitHub: @reisir

And as they are normal markdown links they also work outside of GitHub: GitHub user

The unique ids solve people changing their usernames. GitHub can get the current username for rendering the mention.

@boshmaf
Copy link

boshmaf commented Sep 12, 2023

+1

@phoriah
Copy link

phoriah commented Sep 18, 2023

+1 Bump

@davidpagnon
Copy link

It's been over 10 years but I'm still interested 😆

@lovely-necromancer
Copy link

+1

GetPsyched added a commit to GetPsyched/printer that referenced this issue Sep 30, 2023
lesiw added a commit to lesiwlabs/edge that referenced this issue Nov 7, 2023
@LifeDreamer24
Copy link

+1

@mnmami
Copy link

mnmami commented Apr 25, 2024

And +1 from 2024. This lowers the chances GH to be used for project documentation. Not wise move.

@sapondanaisriwan
Copy link

+1

@Carnix
Copy link

Carnix commented May 14, 2024

+1 Every time I do this on any project I'm working on (seems like every single one, tbh), I'm reminded of how dumb it is that it doesn't work and a Google search lands me here. Most of my work in on my company's GHE servers, so even if GH adds it here, it will probably be years before it ends up benefiting me, but still - would be nice to have this.

@alessandrobelli
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet