- 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.
Video/blog post: https://pagekeytech.com/blog/misc/onenote-to-markdown-python
- Install the requirements.
pip install -r requirements.txt
-
Open OneNote and ensure the notebook you'd like to convert is open.
-
Run the script.
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
Try this link, and this one. In short:
- Run
python3
to get an interpreter and execute:
import win32com
print(win32com.__gen_path__)
- Delete the
gen_py
folder indicated in the output of the previous step.