示例#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;
 }
示例#2
0
 public function setSidebarAttribute($text)
 {
     $this->attributes['sidebar'] = MarkdownParser::instance()->text(parse_usernames($text));
     $this->attributes['sidebar_source'] = $text;
 }
示例#3
0
 public function setTextAttribute($text)
 {
     $this->attributes['text'] = MarkdownParser::instance()->text($text);
     $this->attributes['text_source'] = $text;
 }