Ejemplo n.º 1
0
 public function toHtml()
 {
     $parsedown = new CustomParsedown();
     $input = Request::get("markdown");
     $html = $parsedown->text($input);
     return $html;
 }
Ejemplo n.º 2
0
 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;
 }