This is a great example of some tooling to export content from Medium over to something more ...JAMstacky.
I've seen a few similar to Mathieu's excellent project emerging, and something I really like is that even though many of them might target a specific static site generator or framework as their destination, they typically take the first step of grabbing the content from a Medium export, and formatting it into something suitable for a static site generator to consume.
Once content is extracted and help as markdown files, or xml, or json, or yaml... there are wonderfully broad possibilities for the static site generator you might wish to use to consume them.
Data portability FTW!