From e78d204df4130f702ee978227c2967c079c67b1a Mon Sep 17 00:00:00 2001 From: tabuna Date: Fri, 29 Mar 2024 03:39:04 +0300 Subject: [PATCH] WIP --- app/Docs.php | 1 + 1 file changed, 1 insertion(+) 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]); }