utils/generateMarkdown.js
// If there is no license, return an empty string
If there is no license, return an empty string
If there is no license return an empty string
function renderLicenseSection(license) {
  if (license === "MIT") {
    return `This project is licensed under the MIT License.
  For more information, please visit: [MIT Explained](${renderLicenseLink(license)})`;
  } else if (license === "Apache 2.0") {
    return `This project is licensed under Apache 2.0.
  For more information, please visit: [Apache Explained](${renderLicenseLink(license)})`;
  } else if (license === "GPL 3.0") {
    return `This project is licensed under GPL 3.0.
  For more information, please visit: [GPL Explained](${renderLicenseLink(license)})`;
  } else {
    return '';
  }
}
function renderLicenseSection ( license ) { if ( license === "MIT" ) { return ` ${ renderLicenseLink ( license ) } ` ; } else if ( license === "Apache 2.0" ) { return ` ${ renderLicenseLink ( license ) } ` ; } else if ( license === "GPL 3.0" ) { return ` ${ renderLicenseLink ( license ) } ` ; } else { return '' ; } }
If there is no license, return an empty string
If there is no license return an empty string