Outline like text formatting with images when converting from impress to html

I’m trying to convert an impress file into a single html page where the text is very simply formatted (I want to eventually convert the html to markdown and/or latex). Currently, I can get the text well formatted in the GUI using
Export -> HTML -> Single-document HTML


However, no images are included in the output even though there’s an option for image resolution when doing the export.

In contrast, if I use the command line

soffice --convert-to html input.odp

I get,

Here the images are embedded, but the text formatting is overly complex and doesn’t convert well to md.

Is there a way to get simple output with the images associated with it? Ideally from the command line?