renderMarkdown(mdText) {
    if (!window["markdownit"])
      return;
    if (!_UibRouter.md)
      this._markdownIt();
    try {
      return _UibRouter.md.render(mdText.trim());
    } catch (e) {
      console.error(`[uibrouter:renderMarkdown] Could not render Markdown. ${e.message}`, e);
      return '<p class="border error">Could not render Markdown<p>';
    }
  }
Use Markdown-IT to render Markdown to HTML
https://markdown-it.github.io/markdown-it
@param {string} mdText Markdown string
@returns {string|undefined} HTML rendering of the Markdown input