Skip to content

Commit

Permalink
111 argument must be of type string null given called in htmlelementp…
Browse files Browse the repository at this point in the history
…hp (#117)
  • Loading branch information
benbjurstrom authored Jan 15, 2025
1 parent fdf0d20 commit 4f09466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Extensions/MarkdownImageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ public function onDocumentParsed(DocumentParsedEvent $event): void
// Generate the srcset attribute
$srcset = $this->generateSrcset($originalUrl);
$node->data->set('attributes', [
'x-zoomable' => config('prezet.image.zoomable'),
'x-zoomable' => config('prezet.image.zoomable', true),
'srcset' => $srcset,
'sizes' => config('prezet.image.sizes'),
'loading' => 'lazy',
'decoding' => 'async',
'fetchpriority' => 'auto',
]);
// If the viewport is less than 1024px, the image will take up 92% of the viewport width. Otherwise, the image will be 768px wide.
// If the viewport is less than 1024px, the image will take up 92% of the viewport width. Otherwise the image will be 768px wide.
// https://coderpad.io/blog/development/the-definitive-guide-to-responsive-images-on-the-web/#:~:text=Adding%20the%20sizes%20attribute
}
}
Expand Down

0 comments on commit 4f09466

Please sign in to comment.