Auto-link github handles #45

Closed
opened 2026-10-05 05:11:10 +02:00 by adam · 5 comments
Owner

It would be awesome if GitHub @ mentions were auto-linked to GitHub profiles in blog posts. I'm hoping there's an existing plugin but there likely isn't.

It would be awesome if GitHub `@` mentions were auto-linked to GitHub profiles in blog posts. I'm hoping there's an existing plugin but there likely isn't. <!-- github-sync-id:828179681 -->
adam closed this issue 2026-10-05 05:11:10 +02:00
Author
Owner

@jdiogopeixoto - This is an interesting idea. What do you think about the feasibility of this? AFAIK it would:

  • be limited to blog post body text only
  • at static site build, search body text for @foo and render as <a href="https://github.com/foo">@foo</a>

Note this does risk ALL text of format @foo getting rendered as a GitHub link. Not a frequent case, but still a risk. If executing this would be complex, keeping the risk in mind, it might not be worth implementing.

@jdiogopeixoto - This is an interesting idea. What do you think about the feasibility of this? AFAIK it would: - be limited to blog post body text only - at static site build, search body text for `@foo` and render as `<a href="https://github.com/foo">@foo</a>` Note this does risk ALL text of format `@foo` getting rendered as a GitHub link. Not a frequent case, but still a risk. If executing this would be complex, keeping the risk in mind, it might not be worth implementing. <!-- github-comment-id:795921630 -->
Author
Owner

Wouldn't it be better to just add the handle to the markdown as a link, like [@foo](https://github.com/foo)? 🤔

Wouldn't it be better to just add the handle to the markdown as a link, like `[@foo](https://github.com/foo)`? 🤔 <!-- github-comment-id:795935211 -->
Author
Owner

If you mean to edit the markdown itself directly as part of an automated process, sure. I believe @Stebalien's original request was so that he doesn't need to type all of that.

If you mean to edit the markdown itself directly as part of an automated process, sure. I believe @Stebalien's original request was so that he doesn't need to type all of that. <!-- github-comment-id:796093275 -->
Author
Owner

I really don't think it's worth doing this, I feel like it's too much work when it can be solved by just adding it as a link.
Doing this could also lead to problems as you mentioned, we would have to assume that all the handles are GitHub handles, which I don't think it's a good assumption.

I really don't think it's worth doing this, I feel like it's too much work when it can be solved by just adding it as a link. Doing this could also lead to problems as you mentioned, we would have to assume that all the handles are GitHub handles, which I don't think it's a good assumption. <!-- github-comment-id:797010180 -->
Author
Owner

My biggest concern about this is the assumption that anything with an @ is a GitHub handle. Agree - let's close this but revisit if it becomes a pain point.

My biggest concern about this is the assumption that anything with an `@` is a GitHub handle. Agree - let's close this but revisit if it becomes a pain point. <!-- github-comment-id:797012158 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/ipfs-blog#45