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

Open links in different tabs #1542

Open
DeadpoolX7 opened this issue Dec 26, 2024 · 7 comments
Open

Open links in different tabs #1542

DeadpoolX7 opened this issue Dec 26, 2024 · 7 comments

Comments

@DeadpoolX7
Copy link

DeadpoolX7 commented Dec 26, 2024

Open links of repos in different tabs to save time

If links are opened in different tabs it would be easier for users to return to home read.me in a single click, rather than after going through a lot of issues in project repos and doing back back!
Think, of it.

@athinaanv
Copy link

Can I give this an attempt and see where I can get?

@sammyhori
Copy link
Collaborator

Can I give this an attempt and see where I can get?

Please do, I think this is a great idea.

You'll probably need to change something in the way the markdown syntax is written in the template for the README (found at .github/README-template.j2).

@sammyhori
Copy link
Collaborator

It does seem that this may not be possible actually, but please let me know if you find a reasonable working solution.

@DeadpoolX7
Copy link
Author

DeadpoolX7 commented Dec 31, 2024

@sammyhori actually you're right it's not possible currently markdown doesn't support such feature to be implemented with it's syntax.

  • Rather it's better to educate or suggest user to open the link in new tab for better experience 🙂

@ShahHetvi24
Copy link

can we do like this :
When the new_technology_dict function is called, each entry will have a target="_blank" attribute.
The Jinja2 template will use this attribute to render each link with the target="_blank" value, ensuring it opens in a new tab when clicked.

@sammyhori
Copy link
Collaborator

  • Rather it's better to educate or suggest user to open the link in new tab for better experience 🙂

That does seem to be the best we can do, perhaps a little note telling people to SHIFT+CLICK to do so.

@sammyhori
Copy link
Collaborator

can we do like this : When the new_technology_dict function is called, each entry will have a target="_blank" attribute. The Jinja2 template will use this attribute to render each link with the target="_blank" value, ensuring it opens in a new tab when clicked.

Whilst that might work when templating HTML and with some other markdown programs, my understanding is that GitHub removes the target attribute when rendering markdown so this unfortunately wouldn't work (see the accepted answer to this StackOverflow question).

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

No branches or pull requests

4 participants