- You must have Pandoc installed on your system and accessible in your system PATH. Check by running
pandoc --version
in a PowerShell or cmd window. - Python version only: You must have Python 3 installed on your system. This README assumes it is accessible via
python
, but other aliases, such aspython3
, are fine. - Python >= 3.8 seems to have problems with
pywin32
, it's probably best to stick to Python 3.7
There is a quick YouTube video available.
- Install the requirements.
pip install -r requirements.txt
-
Open OneNote (not the "OneNote for Windows 10" app) and ensure the notebook you'd like to convert is open. If you have synchronization with OneDrive enabled, wait for a few moments until all notebooks are synchronized. If you later get an error message, try to run OneNote as administrator.
-
Run the script as administrator in PowerShell.
python convert.py
- Find your converted notes in
~/Desktop/OneNoteExport
. You're free to do what you want with the notes now - commit them to Git, open them in obsidian, or whatever.
Video/blog post: https://pagekeysolutions.com/blog/misc/onenote-to-markdown
This version is a bit more finnicky. It may fail, but feel free to try! Open PowerShell, navigate to this repo, and run:
.\convert3.ps1