async function mdToJsx(markdown, filepath, projectType, stories) {
  return `/**
 *
 * The code below is generated by storybook docs.
 *
 */

${createDocsPage(stories, projectType)}

// The docs page, markdown turned into using jsx for storybook
${await compileMdToJsx(markdown, filepath)}`;
}
Turns MD into JSX using the MDX compiler. This is necessary because most of the
regular storybook docs functionality relies on JSX and MDX specifics

@param {string} markdown
@param {string} filepath
@param {string} projectType
@param {Story[]} [stories]
@returns {Promise<string>}