The Nextcloud editor might be a little bit bare-bones, but it might do the trick – not sure how fancy you want things to be.

Maybe Markor might suit you better if Notes is too simplistic: https://f-droid.org/packages/net.gsantner.markor .