Gotta second nextcloud notes.
Notes are just saved in plaintext on sour fileshare but the app can format markdown or even rich text. There's a mobile App and I think desktop apps? But the webinterface works great on desktop.
Of course having a whole nextcloud can be a bit of an overhead. I had a nextcloud anyway for the cloud features so it only made sense.