Skip to content

Commit

Permalink
fix: kirbytext inline deprecation since 3.7
Browse files Browse the repository at this point in the history
No uses the option parameter since third `$inline` parameter is deprecated in kirby
  • Loading branch information
mayfinn committed Aug 26, 2022
1 parent bb5415f commit ba0fee3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tags/blurryimage.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@

// render KirbyText in caption
if ($tag->caption) {
$tag->caption = [$tag->kirby()->kirbytext($tag->caption, [], true)];
$tag->caption = [$tag->kirby()->kirbytext($tag->caption, [
'markdown' => ['inline' => true],
])];
}

return Html::figure([$link($image)], $tag->caption, [
Expand Down

0 comments on commit ba0fee3

Please sign in to comment.