diff --git a/src/Extensions/MarkdownImageExtension.php b/src/Extensions/MarkdownImageExtension.php index d48889f..7bc1a08 100644 --- a/src/Extensions/MarkdownImageExtension.php +++ b/src/Extensions/MarkdownImageExtension.php @@ -28,7 +28,7 @@ public function onDocumentParsed(DocumentParsedEvent $event): void } // if this isn't an external image, set the prefix - if (! Str::startsWith($node->getUrl(), 'http')) { + if (! Str::startsWith($node->getUrl(), ['http://', 'https://'])) { $originalUrl = $node->getUrl(); $node->setUrl(route('prezet.image', $originalUrl, false));