I'd recommend Obsidian. Free and perfect for making and organising markdown notes, plus heaps of community extensions. And out-of-the-box you can make "canvas" pages where you can draw diagrams.
Thank you ! I didn't though that the canvas could be used as diagram. But actually that's pretty good because it's not only between notes but I can create boxes too.