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

@ -12,6 +12,8 @@ interface Markup
{
public const TAG_CODE = 'tt';
public const WRAP_WIDTH = 140;
public static function code(
string $value
): string;
@ -54,4 +56,8 @@ interface Markup
string $const,
bool $close
): string;
public static function width(
string $markup
): ?int;
}