code: function markdownFormat(str) {
    // if string...
    if(str && typeof str === 'string') {
  
      // process characters that do not render visibly in markdown
      str = str.replace(/\<(?!@)/g, '&lt;');
      str = str.split('').reverse().join('').replace(/\>(?!.*@\<)/g, ';tg&').split('').reverse().join('');
  
      return str;
    }
  
    // else return empty
    else {
      return '';
    }
  }
docs: format makrdown type