mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
implement custom word wrap for text blocks
This commit is contained in:
parent
f81cf9fdee
commit
7ec3d06db9
4 changed files with 85 additions and 65 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue