예제 #1
0
function markdown($md, $inlineOnly = FALSE)
{
    $parsedown = new Parsedown();
    return $inlineOnly !== FALSE ? $parsedown->line($md) : $parsedown->text($md);
}
예제 #2
0
 public static function getHtmlLine($md, $breaksEnabled = true)
 {
     $parsedown = new Parsedown();
     $parsedown->setBreaksEnabled($breaksEnabled);
     return $parsedown->line($md);
 }
예제 #3
0
 /**
  * 
  *
  * @static 
  */
 public static function line($text)
 {
     return \Parsedown::line($text);
 }
예제 #4
-1
 public static function renderComment($comment)
 {
     $Parsedown = new Parsedown();
     $dirty_html = $Parsedown->line($comment);
     $purifier = new HTMLPurifier();
     $clean_html = $purifier->purify($dirty_html);
     return $clean_html;
 }