Highly recommend nb[0] for this type of stuff. I've been using it for a few years now and am still getting surprised by all the stuff it can do.
Some others have said it but the only problem with a lot of these systems is that by their very nature they are a better experience on a desktop than on mobile. Joplin is the only one I've used that even attempts to solve that problem. Even when you have one that works on mobile its a second class experience IMO. I used to try really hard to find a note capture system that I loved that worked in both environments. These days I just use apple notes on mobile and nb on desktop.
Some others have said it but the only problem with a lot of these systems is that by their very nature they are a better experience on a desktop than on mobile. Joplin is the only one I've used that even attempts to solve that problem. Even when you have one that works on mobile its a second class experience IMO. I used to try really hard to find a note capture system that I loved that worked in both environments. These days I just use apple notes on mobile and nb on desktop.
[0] https://xwmx.github.io/nb/