html import to odt with custom style

if I open this html in Writer

<h1>Test heading 1</h1>

I get a document with Heading 1 style heading

How should I modify my html to get a custom style heading (e.g. MyHeading 1)?

I know this may be late, but here is how it works.
Standard markup is converted to standard styles, ie. h1 → Heading 1 and so on.
If you put a style tag on top of it, like <style> h1 {font: bold 18pt "Lucida Sans Unicode"; padding-top: 10pt;}</style>
the style will be formatted as required (I put pt for font size only in my html-to-odt css :wink: ).
If you want your own classes you can use CSS classes (i.e. h1.myHeading) and setup it on the style tag, so that once imported you will see style “Heading 1.myHeading” in your syle list.
I hope this help!