<課題>
marked.jsの引数は文字列。例えば、marked('#Hello');
のように引数が文字列の場合は問題ないと思います。
<実現したいこと>
引数が変数だったり、他のファイルでテンプレート化したものをmarked.jsで表示したい。
例えば、下記のように%tab_panel%をHTMLで表示したい場合は、どのように、marked.jsをあててマークアップを反映すればよろしいでしょうか?
php
1'%tab_panel%' => $this->panel_about(), 2 3 4 public function panel_about() 5 { 6 $u = $this->user; 7 $p = $this->proj; 8 9 extract($p); 10 $replace = array( 11 '%description%' => nl2br(filtering($description)), 12 '%attachments%' => $this->attachments(), 13 '%skills%' => $this->skills(), 14 ); 15 return get_view(DIR_TMPL . $this->module . "/panel_about.php", $replace); 16 } 17
あなたの回答
tips
プレビュー