function markdown($md, $inlineOnly = FALSE) { $parsedown = new Parsedown(); return $inlineOnly !== FALSE ? $parsedown->line($md) : $parsedown->text($md); }
public static function getHtmlLine($md, $breaksEnabled = true) { $parsedown = new Parsedown(); $parsedown->setBreaksEnabled($breaksEnabled); return $parsedown->line($md); }
/** * * * @static */ public static function line($text) { return \Parsedown::line($text); }
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; }