소스 검색

add id behind sentence

visuddhinanda 9 달 전
부모
커밋
bc7867b3fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      api-v8/app/Services/SearchPaliDataService.php

+ 1 - 1
api-v8/app/Services/SearchPaliDataService.php

@@ -113,7 +113,7 @@ class SearchPaliDataService
         foreach ($sentences as $key => $sentence) {
             $content = $this->getSentenceText($book, $para, $sentence->word_begin, $sentence->word_end);
             $id = "{$book}-{$para}-{$sentence->word_begin}-{$sentence->word_end}";
-            $markdown[] = $content['markdown'];
+            $markdown[] = "`id:{$id}`" . $content['markdown'];
             $text[] = $content['text'];
             $wordList = array_merge($wordList, $content['words']);
         }