Call back when selecting image in markdown editor

I’m using netlify create as a cms using the Astro and setup cloudinary as an image asset provider. When selecting an image in the markdown editor is there a way to customise the image url that is returned via a callback or similar. I’m trying to customise the cloudinary url to specify image transformation rules rather the default url. For example when speficying an image field I can get the full image details Cloudinary asset integration | Netlify Docs and build the cloudinary url when rendering the page.

thanks