Sfoglia il codice sorgente

add title_text in showChapter

visuddhinanda 2 anni fa
parent
commit
4b80a7312a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      app/Http/Controllers/CorpusController.php

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

@@ -450,6 +450,8 @@ class CorpusController extends Controller
                     ->first();
                     ->first();
         if($title){
         if($title){
             $this->result['title'] = MdRender::render($title->content,[$title->channel_uid]);
             $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]);
         }
         }
 
 
         /**
         /**