BioDrop
BioDrop copied to clipboard
[FEATURE] Allow hyperlinks in profile's bio section
Description
It will be a nice feature that allows users to add hyperlinks in their bio section. Users can add links to their previous & current works, contributions, etc.
Screenshots
A user profile data, Which has a link in bio :point_down:
{
"name": "Eddie Jaoude",
"type": "personal",
"bio": "Founder of <a href='https://github.com/EddieHubCommunity'>@EddieHubCommunity</a>",
"avatar": "https://github.com/eddiejaoude.png",
"links": ["..."]
}
Additional information
My solution :-
In src/Components/Profile.js
component, Check bio
prop contains hyperlinks(anchor tags) using the below regex :point_down:
const regex = /<a[\s]+([^>]+)>((?:.(?!\<\/a\>))*.)<\/a>/gi;
If it does not contain hyperlinks render the bio
. If it contains the hyperlink render a new component, which converts the string hyperlinks to the anchor tags.
It's great having you contribute to this project
Welcome to the community :nerd_face:If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our Discord chat and our GitHub Organisation - we help and encourage each other to contribute to open source little and often 🤓 . Any questions let us know.
Isn’t this the purpose of all the links and milestones under the bio though?
Isn’t this the purpose of all the links and milestones under the bio though?
Yes, your right. But in some cases, the user decides to include links in his bio. Then it will render as a text. So, there are two ways we can fix this issue, allowing users to add links in their bio section or preventing them.
Isn’t this the purpose of all the links and milestones under the bio though?
Yes, your right. But in some cases, the user decides to include links in his bio. Then it will render as a text. So, there are two ways we can fix this issue, allowing users to add links in their bio section or preventing them.
Hey is this issue fixed or can I try this?
Isn’t this the purpose of all the links and milestones under the bio though?
Yes, your right. But in some cases, the user decides to include links in his bio. Then it will render as a text. So, there are two ways we can fix this issue, allowing users to add links in their bio section or preventing them.
I think what Emma means is that there is already a section for links below the bio section. Adding hypertext in the bio would maybe seem like redundancy in my opinion...
Yes, should i close this issue?
This is now allowed with the use of markdown in the bio 👍