Image inline inside kirby text

Hello,
I am trying to do a very basic thing, insert an image inline inside some kirbytext.

The same way that this emoji :grinning_face_with_smiling_eyes: is inline with this text.

This seems like it should be a trivially easy thing to do. I have been banging my head against the wall trying everything I can think of, but I just cannot get the image to sit inline with the text! :confused:

Kirbytext :

mytext:

Lorem ipsum dolor sit amet (link: something text: lorem ipsum) (image: assets/images/icon.svg).

php :

<div class="my-text">
<?= $page->mytext()->kirbytext() ?>
</div>

css :

.my-text img {
display: inline;
}

I’ve tried assigning a class to the image inside the kirbytext markdown and then targetting the class with css, but that doesn’t work either…

Any ideas ?

Thanks in advance

Images are by default wrapped in a figure tag. You can change that in config options (but that will then affect all images).

'kirbytext' => [
  'image' => [
    'figure' => false,
  ]
]

Then you can make the image inline.

That did the trick, thanks!