James Moger
2013-10-24 ab1e1148ba6ec2a0e53ff54398173204febc9a4a
src/main/java/com/gitblit/utils/MarkdownUtils.java
@@ -33,6 +33,21 @@
public class MarkdownUtils {
   /**
    * Returns the html version of the plain source text.
    *
    * @param text
    * @return html version of plain text
    * @throws java.text.ParseException
    */
   public static String transformPlainText(String text) {
      // url auto-linking
      text = text.replaceAll("((http|https)://[0-9A-Za-z-_=\\?\\.\\$#&/]*)", "<a href=\"$1\">$1</a>");
      String html = "<pre>" + text + "</pre>";
      return html;
   }
   /**
    * Returns the html version of the markdown source text.
    *
    * @param markdown