@@ -14,8 +14,11 @@ class AppRuntimeExtension implements RuntimeExtensionInterface
{
}
- public function parse(string $content): string
+ public function parse(?string $content): string
- return $this->markdownParser->convertToHtml($content);
+ if ($content) {
+ return $this->markdownParser->convertToHtml($content);
+ }
+ return "";