Fixed image tag overflow.
This commit is contained in:
parent
0fcd91ef48
commit
3e4a8504ad
1 changed files with 1 additions and 1 deletions
|
@ -12,6 +12,6 @@ final class ImageTag extends BBCodeSimpleTag
|
||||||
|
|
||||||
public function getReplacement(): string
|
public function getReplacement(): string
|
||||||
{
|
{
|
||||||
return '<img src="$1" alt="$1">';
|
return '<a href="$1" target="_blank" rel="noreferrer noopener"><img src="$1" alt="$1" style="max-width:100%;max-height:100%;"></a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue