

I see that markdown format covers all my needs.

can fold text (aka collapse and expand).I've also tried outlining apps such as dynalist and CheckVist, but they don't provide a good backup solution, and I don't want my notes to be vendor locked-in. I tried code editors, they have folding, but keeping notes without images and different font styles isn't comfortable (I want at least have different styles for code snippets and plain text). MS Word seem to have everything I need, but it's a pain to get it running on linux. Also my notes contain many graphical illustrations(that I currently draw in inkscape). I want it to have folding (aka collapse and expand) capabilities, because my notes are large (I keep track of everything, including long outputs of commands). I need an app suitable to making notes while working on my programming research projects.
