Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna committed Mar 29, 2024
1 parent ba25d66 commit e78d204
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ public function getSections(): Collection

$sectionContent = $content->after($tag);

// Если есть следующий заголовок - обрезаем контент до него
if (isset($matches[$index + 1])) {
$sectionContent = $sectionContent->before($matches[$index + 1][0]);
}
Expand Down

0 comments on commit e78d204

Please sign in to comment.