{"size": 525, "ext": "js", "max_stars_repo_path": "markdowntohtml.js", "max_stars_repo_name": "ArleneAndrews/codeTestsFromApplications", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "markdowntohtml.js", "max_issues_repo_name": "ArleneAndrews/codeTestsFromApplications", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "markdowntohtml.js", "max_forks_repo_name": "ArleneAndrews/codeTestsFromApplications", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.0, "max_line_length": 61, "alphanum_fraction": 0.5047619048}
function markdownParser (markdown) {
  markdown = markdown.trim();
  let splitStr = markdown.split(" ");
  let count = splitStr.length;
  let level = splitStr[0].length;
  let text ="";
  
  if (markdown.startsWith("#")){
    if (level >= 7){
      string = markdown;
    }
    else {
       for (i = 1; i < count; i++){
      text = text + (splitStr[i]) + " ";
      }
    text = text.trim();
    string = "<h" + level + ">" + text +"</h" + level + ">" ;
    }
  }
  
  else {
   string = markdown;   
   }
  return string
}