Hi,
Is there a way to have italic (or other formatting text) inside images figure
tag ?
Example : (image: file.jpg caption: regular text and *italic text*)
For now, italic text isn’t output as italic.
Thanks,
Anthony
Hi,
Is there a way to have italic (or other formatting text) inside images figure
tag ?
Example : (image: file.jpg caption: regular text and *italic text*)
For now, italic text isn’t output as italic.
Thanks,
Anthony
You would have to either modify the image tag in the source (kirby/extensions/tags.php) or - better - copy the image tag as custom tag into site/fields and modify line 149 from
$figure->append('<figcaption>' . html($caption) . '</figcaption>');
to
$figure->append('<figcaption>' . kirbytext($caption) . '</figcaption>');
Thanks, it works!
I just wandered why it’s not like that by default.
Kind regards,
a.
Maybe because the kirbytext()
function adds <p>
tags …