diff --git a/app/Docs.php b/app/Docs.php index da8c8d78..24a86db5 100644 --- a/app/Docs.php +++ b/app/Docs.php @@ -385,6 +385,7 @@ public function getSections(): Collection $sectionContent = $content->after($tag); + // Если есть следующий заголовок - обрезаем контент до него if (isset($matches[$index + 1])) { $sectionContent = $sectionContent->before($matches[$index + 1][0]); }