Git Product home page Git Product logo

onenote-to-markdown's Introduction

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.

onenote-to-markdown's People

Contributors

stephengrice avatar erezak avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.