Bookstack is excellent.
It may be what finally replaces OneNote for me. There are a LOT of note-taking/documentation/knowledge base applications out there (it’s seriously ridiculous how many there are), so it’s shocking how long it has taken me to try and find a replacement. OneNote can handle copy-pasting images, text, links, charts/tables, files, and probably a bunch of other things I don’t know, so it’s a pretty fantastic application; but with how many choices are out there in the note-taking/knowledge base industry, it was natural to find a self-hosted and open-source alternative that I can host on my homelab for all my homelab notes, .
Enter the Bookstack web application. It’s completely open-source, I love the ability to make a page/article public if I want, it has a Book > Chapter > Page structure that is very similar to OneNote’s structure, and the page editor is actually very good at accepting my pasting - I’ve already copied and pasted entire blog posts, and the majority of the structure is maintained (there may be a little bit of cleanup involved, but only a minute or two needed usually).
My only nitpick is that the notes are stored in a MySQL database - which is a totally fine choice, honestly! - and that makes my notes a little bit less ‘portable’. It’s not a plain file/directory structure, so I can’t super-easily switch to a different note/knowledge base system.
However, being an open-source application with an active community (and becoming more and more popular), there may come a day when there is an option to export notes to some sort of text/markdown format.