convertMarkdown(mdText) {
    if (!mdText) return "";
    if (!_a.win["markdownit"]) return mdText;
    if (!_a.md) this._markDownIt();
    try {
      return _a.md.render(mdText.trim());
    } catch (e) {
      _a.log(0, "uibuilder:convertMarkdown", `Could not render Markdown. ${e.message}`, e)();
      return '<p class="border error">Could not render Markdown<p>';
    }
  }
Converts markdown text input to HTML if the Markdown-IT library is loaded
Otherwise simply returns the text
@param {string} mdText The input markdown string
@returns {string} HTML (if Markdown-IT library loaded and parse successful) or original text