public static String toHTML(final String markdownText){
  if (Strings.isEmptyOrNull(markdownText)) {
    return "";
  }
  final StringWriter writer=new StringWriter();
  final Markdown markdown=new Markdown();
  try {
    markdown.transform(new StringReader(markdownText),writer);
  }
 catch (  final ParseException e) {
    return markdownText;
  }
  return writer.toString();
}

public static String toHTML ( final String markdownText ) { if ( Strings . isEmptyOrNull ( markdownText ) ) { return "" ; } final StringWriter writer = new StringWriter ( ) ; final Markdown markdown = new Markdown ( ) ; try { markdown . transform ( new StringReader ( markdownText ) , writer ) ; } catch ( final ParseException e ) { return markdownText ; } return writer . toString ( ) ; }
converts the specified markdown text to html .
