So I installed TriliumNext on my development setup and to be honest, I am pretty impressed. A notes app that is packed full of features that you have full control over. They have a desktop version and they have a server installation version. You can sync the two together. They also have a docker install for it among other ways.
I also believe you could use the API to pull in a note to another site or a forum like nodebb. Or a webpage or what have you.
I am going to play around with it more, but if I continue to like it like I do now, I just may install it on my new virtual server I build on Hetzner and use that from now on rather than onenote or some of the others I have tried.
If any of you get a chance, I will definitely say it is worth a look at to see if it would fit your needs.