public function toHtml() { $parsedown = new CustomParsedown(); $input = Request::get("markdown"); $html = $parsedown->text($input); return $html; }
public function post($type = null) { $parsedown = new CustomParsedown(); switch ($type) { case 'html': $post = $parsedown->text($this->post); break; default: $post = $this->post; break; } return $post; }