'style,script,iframe', 'emoji' => true, 'taskList' => true, 'tex' => true, 'flowChart' => true, 'sequenceDiagram' => true, ]; public function __construct($markdown = '') { $this->content($markdown); } /** * @param string|Renderable $markdown * * @return $this */ public function content($markdown) { $this->content = &$markdown; return $this; } protected function renderContent() { return Helper::render($this->content); } public function render() { $id = 'mkd-'.Str::random(8); $this->defaultHtmlAttribute('id', $id); $this->with([ 'id' => $id, 'content' => $this->renderContent(), ]); return parent::render(); } }