Esempio n. 1
0
 public function setTextAttribute($text)
 {
     $parser = MarkdownParser::instance();
     $parser->config('inline_images', true);
     $parser->config('headers', true);
     $this->attributes['text'] = $parser->text(parse_usernames($text));
     $this->attributes['text_source'] = $text;
 }
Esempio n. 2
0
 public function setSidebarAttribute($text)
 {
     $this->attributes['sidebar'] = MarkdownParser::instance()->text(parse_usernames($text));
     $this->attributes['sidebar_source'] = $text;
 }
Esempio n. 3
0
 public function setTextAttribute($text)
 {
     $this->attributes['text'] = MarkdownParser::instance()->text($text);
     $this->attributes['text_source'] = $text;
 }