utils/generateMarkdown.js
// Function to generate markdown for README
Function to generate markdown for README
Function to generate markdown for README
function generateMarkdown(data) {
  return `# ${data.title}
  ## Decription
  ${data.description}
  ${renderLicenseBadge(data.license)}
  ## Table of Contents
  - [Installation](#installation)
  - [Usage](#usage)
  - [Contibution](#contribution)
  - [Tests](#test)
  - [Questions](#questions)
  ${renderLicenseLink(data.license)}
  ## Installation
  ${data.installation}
  ## Usage
  ${data.usage}
  ## Contribution
  ${data.contribution}
  ## Tests
  ${data.test}
  ## Questions
  ${data.submitQuestions}
  Email: ${data.email}
  GitHub: https://github.com/${data.userName}
  ${renderLicenseSection(data.license)}
`;
}
function generateMarkdown ( data ) { return ` ${ data . title } ${ data . description } ${ renderLicenseBadge ( data . license ) } ${ renderLicenseLink ( data . license ) } ${ data . installation } ${ data . usage } ${ data . contribution } ${ data . test } ${ data . submitQuestions } ${ data . email } ${ data . userName } ${ renderLicenseSection ( data . license ) } ` ; }
Function to generate markdown for README
Function to generate markdown for README