I am creating a Professional README.md Generator. I would like to include a "Gmail" badge - using Shields.io - at the top of the page along with other Badges, including License, GitHub Profile, and Deployed Application URL. The goal is to make the email badge link so that a new email draft opens that is addressed to the provided email address when the badge is clicked. At present my code for the Email Badge in my generateMarkdown.js file is:
function generateEmailBadge(email) {
return ``;
}
Originally, I had the link=${email} in the function generateEmailBadge(email), and, after some research, I changed it to link=mailto:${email}. Both attempts failed to make the badge clickable. I understand that in the generateMarkdown function, I can create a link as such: Contact Me. However, I am wondering, is there even a way to make a Shields.io badge link to an email address in the way I am looking to? If so, can someone please share guidance as to how I can make this work?
This is how you create a link in markdown:
So you have to wrap your badge with:
Result: