/** * Converts viewVars._message_html to HTML */ public function process(array &$config) { # run _message_html thru Markdown if (isset($config['viewVars']['_message_html'])) { $config['viewVars']['_message_html'] = Markdown::toHtml($config['viewVars']['_message_html']); } }
/** * Takes a string of markdown-formatted text and returns it as formatted HTML * @param $markdown string of markdown-formatted text * @return string of HTML */ public function toHtml($markdown) { return Markdown::toHtml($markdown); }