Skip to content

Latest commit

 

History

History
51 lines (31 loc) · 1.64 KB

README-OLD.md

File metadata and controls

51 lines (31 loc) · 1.64 KB

onenote-to-markdown

Pre-requisites

  • 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 as python3, are fine.

Python Version

Video/blog post: https://pagekeytech.com/blog/misc/onenote-to-markdown-python

  1. Install the requirements.
pip install -r requirements.txt
  1. Open OneNote and ensure the notebook you'd like to convert is open.

  2. Run the script.

python convert.py
  1. 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.

PowerShell Version

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

Troubleshooting

AttributeError: module 'win32com.gen_py... has no attribute 'CLSIDToClassMap'

Try this link, and this one. In short:

  1. Run python3 to get an interpreter and execute:
import win32com
print(win32com.__gen_path__)
  1. Delete the gen_py folder indicated in the output of the previous step.