mirror of
https://github.com/typemill/typemill.git
synced 2025-08-07 22:56:32 +02:00
Version 1.5.1: Lazy loading images and ping sitemap
This commit is contained in:
@@ -200,6 +200,20 @@ class ParsedownExtension extends \ParsedownExtra
|
||||
return $block;
|
||||
}
|
||||
|
||||
protected function inlineImage($excerpt)
|
||||
{
|
||||
$image = parent::inlineImage($excerpt);
|
||||
|
||||
if ( ! isset($image))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
$image['element']['attributes']['loading'] = "lazy";
|
||||
|
||||
return $image;
|
||||
}
|
||||
|
||||
protected function blockTable($Line, array $Block = null)
|
||||
{
|
||||
|
||||
|
Reference in New Issue
Block a user