*/ class MarkdownHelper { /** * @param $content * @return string */ public static function toHtml($content, $toc_id = '') { $js = <<view); Yii::$app->view->registerJs($js); return Html::tag('div', Html::textarea('', $content, [ 'style' => 'display:none;', ]), [ 'id' => 'markdown-view', ]); } }