Explorar el Código

add id behind sentence

visuddhinanda hace 5 meses
padre
commit
bc7867b3fe
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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']);
         }