function plantUMLReplacer(umlCode) {
    let renderedHTML;

    try {
      if (!plantumlEncoder) {
        throw new Error('plantuml-encoder dependency required');
      }
      renderedHTML = `<img src="${rendererURL}${plantumlEncoder.encode(umlCode)}" />`;
    } catch (err) {
      renderedHTML = `Error occurred on encoding uml: ${err.message}`;
    }

    return renderedHTML;
  }
function plantUMLReplacer(umlCode) {
    let renderedHTML;

    try {
      if (!plantumlEncoder) {
        throw new Error('plantuml-encoder dependency required');
      }
      renderedHTML = `<img src="${rendererURL}${plantumlEncoder.encode(umlCode)}" />`;
    } catch (err) {
      renderedHTML = `Error occurred on encoding uml: ${err.message}`;
    }

    return renderedHTML;
  }
function plantUMLReplacer ( umlCode ) { let renderedHTML ; try { if ( ! plantumlEncoder ) { throw new Error ( 'plantuml-encoder dependency required' ) ; } renderedHTML = ` ${ rendererURL } ${ plantumlEncoder . encode ( umlCode ) } ` ; } catch ( err ) { renderedHTML = ` ${ err . message } ` ; } return renderedHTML ; }
render html from uml
@param {string} umlCode - plant uml code text
@returns {string} - rendered html
render html from uml
plantUMLReplacer - Placeholder for HTML