Cannot load module uninstall page - says module does not exist
It turned out there was a markdown.settings entry in the database (in the config or cache_config table, I forget which). I deleted this row and then it was possible to install and then uninstall the module.