Others are recommending Obsidian (which I have no experience with, it may be the right way to go).
Myself, I chose Logseq on a whim a year or two ago and haven’t looked back. In the backend you get a nicely composed set of plain-ol’ markdown files that you can cp/edit/merge as needed.