This might give you an idea; convert the ePub to TEXT with markdown in calibre, and then convert the resulting txt file back to ePub.
Yes; there will still be some CSS and styles added by calibre, but a minimum number that might be easier to weed out.
|