1
0

Fix: No need to format an empty string

This commit is contained in:
Richard Dern 2024-04-22 21:51:50 +02:00
parent 53b94e856c
commit 604eee1ba7

View File

@ -43,6 +43,10 @@ public function __construct(protected string $source)
*/
public function render(): string
{
if (empty($this->source)) {
return $this->source;
}
$hash = md5($this->source);
$cacheKey = sprintf('markdown_formatted_%s', $hash);