OneNote does not have export to plaintext files. However I found this cool little program to export all my notes to markdown in one go.
But, turns out that OneNote only lets you export to .docx if you have Word installed too, so you need to have that (the program then converts the .docx to .md with Pandoc).
Anyway, just sharing it here in case someone finds it useful to get away from vendor-locked notes. There are a few different projects on GitHub that do this, but this one was the one that worked best for me.
What happens to the pen writings? I want to get rid of MS and my notes one onenote are the only thing keeping me from deleting my account. I just need them anywhere safe so I can trasfer them to org-mode/markdown/typst.
As per the readme:
Drawing 🟠 Flattened as image Handwriting 🔴 Lost
aww, too bad. Guess I’ll have to find another way.
Have you tried exporting to .docx? If that works maybe you can take it from there somehow
No I haven’t. Thats the first thing I’ll try. Maybe it will embed the handwriting as jpeg in the document.