I am also working on something similar and open source Bangle.io . It allows you to open a local folder and persist your markdown notes there.
It also supports syncing directly with your GitHub repositories.
It also supports syncing directly with your GitHub repositories.