Ver Fonte

add title_text in showChapter

visuddhinanda há 2 anos atrás
pai
commit
4b80a7312a
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      app/Http/Controllers/CorpusController.php

+ 2 - 0
app/Http/Controllers/CorpusController.php

@@ -450,6 +450,8 @@ class CorpusController extends Controller
                     ->first();
         if($title){
             $this->result['title'] = MdRender::render($title->content,[$title->channel_uid]);
+            $mdRender = new MdRender(['format'=>'simple']);
+            $this->result['title_text'] = $mdRender->convert($title->content,[$title->channel_uid]);
         }
 
         /**