lib/bot.js
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 '';
  }
}
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 '';
  }
}
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 '' ; } }
format makrdown type
format makrdown type