implement custom word wrap for text blocks

This commit is contained in:
yggverse 2024-07-29 16:42:14 +03:00
parent f81cf9fdee
commit 7ec3d06db9
4 changed files with 85 additions and 65 deletions

View file

@ -180,7 +180,8 @@ class Gemtext extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Cont
else
{
$line[] = Markup::text(
$entity->getData()
$entity->getData(),
$this->content->page->gtk->get_allocated_width()
);
}