diff --git a/app/Services/Markdown/Formatter.php b/app/Services/Markdown/Formatter.php index 5b75689..415da41 100644 --- a/app/Services/Markdown/Formatter.php +++ b/app/Services/Markdown/Formatter.php @@ -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);