Mobile: Offline/Online .md editing?

I really want a cross-platform (mobile <-> desktop) method of editing .md notes while offline.

Often, I am in areas without a mobile internet connection. The Nextcloud mobile app will not let you edit notes while not connected (well, at least not in the app, itself).

The Joplin mobile app seemd appealing, but it doesn’t really interface with Nextcloud well, since it wants to put all its notes in a single directory, so working with it in Nextcloud isn’t ideal…

Has anybody found a good way to do it? Will the NC mobile apps ever support editing .md files, at least. when offline?