I switched from Obsidian to Joplin years ago. Its completely FOSS and can sync with your private Nextcloud instance.
But all the Joplin data is not in Markdown files sadly.
But all the Joplin data is not in Markdown files sadly.