Converting html to mobiledoc and linking an image

Using Ghost 3.41.2

I am working on converting an old website. My site is using html, so I’m using the html to mobiledoc migrator. Everything seems to be working.
Except my links to images are converted to a simple image.
Is it possible to change migrate to migrate these properly? And what is the proper way to migrate it to the mobiledoc?

Just to clarify I have the following in my HTML:

<a href="https://example.com/IMG.JPG"><img src="https://example.com/IMG_thumbnail.JPG"/></a>

And after the conversion mobiledoc has a list of images, and this is one of them. With no link to the larger image.

I tried changing the html to use but that didn’t help.
Is it possible to achieve this? Or could I hack migrate to do what I want?

Ghost’s editor does not support directly linked image cards which is why the link is being removed when converting html->mobiledoc.

If you need a linked image it’s possible to do it by embedding a html card inside the html that you’re converting:

<!--kg-card-begin: html-->
<a href="https://example.com/IMG.JPG"><img src="https://example.com/IMG_thumbnail.JPG"/></a>
<!--kg-card-end: html-->

Awesome, thank you, that did the trick!