async function mdjsToMd(
  markdownText,
  { filePath = '', setupMdjsPlugins = defaultSetupMdjsPlugins } = {},
) {
  const plugins = setupMdjsPlugins(mdjsToMdPlugins, filePath);
  const parser = unified();
  for (const pluginObj of plugins) {
    parser.use(pluginObj.plugin, pluginObj.options);
  }
  /** @type {unknown} */
  const parseResult = await parser.process(markdownText);
  const result = /** @type {ParseResult} */ (parseResult);

  return {
    html: result.contents,
    jsCode: result.data.jsCode,
    stories: result.data.stories,
  };
}
@param {string} markdownText
@returns {Promise<MarkdownResult>}