Browse Source

Merge pull request #2025 from visuddhinanda/laravel

add title_text in showChapter
visuddhinanda 2 years ago
parent
commit
cfe379f204
1 changed files with 2 additions and 0 deletions
  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]);
         }
         }
 
 
         /**
         /**