text: // TODO: Create a function that returns a license badge based on which license is passed in
  // If there is no license, return an empty string
  function renderLicenseBadge(license) {
    if(license === "none"){
      return ""
      
    } else {
      return `![Github License](https://img.shields.io/badge/license-${license}-green)`;
    }
  }
  
  // TODO: Create a function that returns the license link
  // If there is no license, return an empty string
  function renderLicenseLink(license) {
    if(license === "none"){
      return ""
    } else {
      return `* [License](#license)`
    }
  }
  
  // TODO: Create a function that returns the license section of README
  // If there is no license, return an empty string
  function renderLicenseSection(license) {
    if(license === "none"){
      return ""
    } else {
      return `${license}`
    }
  }
  
  // TODO: Create a function to generate markdown for README
  function generateMarkdown(data) {
    return `# ${data.title}
    ${renderLicenseBadge(data.license)}
  ## Table of Contents
  * [Description](#description)
  * [Installation](#installation)
  * [Usage](#usage)
  * [Contributing](#contributing)
  * [Tests](#tests)
  ${renderLicenseLink(data.license)}
  * [Questions](#questions)
  ${renderLicenseLink(data.license)}
  ## Description
  ${data.description}
  ## Installation
  ${data.installation}
  ## Usage
  ${data.usage}
  ## Contributing
  ${data.contributing}
  ## Tests
  ${data.tests} <br>
  ## License
  ${renderLicenseSection(data.license)}
  ## Questions?
  https://github.com/${data.username}/repo.git <br>
  Reach me by email at: <br> ${data.email}
  `;
  }
  
  module.exports = generateMarkdown;
  