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