That seems to be pretty hard. I just finished a long search for an Open Source one-page markdown editor (no split windows for preview and editing): the closest I could find was an editor called MarkText but even that doesn’t have half the functionality of Notion or Dropbox Paper. It’s hard to compete with fully funded and devoted teams.