This functionality already exists via importing into calibre. You can import, convert to epub and the edit it in the editor, if needed. Or if you want to do it via the editor, you use File->Import HTML or DOCX file as a new book, which will import all linked images as well.
|