Evernote can export notes into ENEX XML document itself.
I've used https://github.com/laurent22/joplin to import this ENEX file and access most of the features (formatting, images) but not other (i.e. password protected values)
In case it's useful and you're on a Mac, FYI you can use Bear (bear.app) to import EverNote's XML export file; and you can then use Bear to export the whole thing as a bunch of markdown files.