mirror of
https://github.com/getgrav/grav.git
synced 2026-07-06 23:09:25 +02:00
handle images inside link excerpts
Signed-off-by: Andy Miller <rhuk@mac.com>
This commit is contained in:
@@ -122,7 +122,7 @@ class Excerpts
|
||||
|
||||
if (isset($element['text'])) {
|
||||
$html .= '>';
|
||||
$html .= $element['text'];
|
||||
$html .= is_array($element['text']) ? static::getHtmlFromExcerpt(['element' => $element['text']]) : $element['text'];
|
||||
$html .= '</'.$element['name'].'>';
|
||||
} else {
|
||||
$html .= ' />';
|
||||
|
||||
Reference in New Issue
Block a user