On Linux, what's the best way to convert a onenote.zip notebook to markdown or html?

I mainly use trillium and want to import my notes. Unsure how to do it without windows. Even with windows the instructions seem unclear

Edit: Here’s what I did: I got my partner’s windows computer and put my onenote notebook on it via file transfer. Then I made folders for every notebook and subnotebook. Finally I would through each section and exported it as a docx. Then I found an app on fedora that can convert docx to anything, and I chose markdown. Then imported these into Trilium. I could have exported each note but that would have taken 10x as long and the section export feature makes clear new notes.

Final comment: importing markdown into Trilium took one second. For formatting sake, I tried to import html as well and it crash the app.

38 points · 6 comments · view on lemmy.world

6 Comments

JustAnotherKay@lemmy.world · 14 pts · 1y

I did s bit of poking around. It looks like there's a tool on GitHub for this exact purpose, or you can just save to a .docx from OneNote then use pandoc to convert to markdown

VE7WYC@lemmy.radio · 6 pts · 1y

Obsidian saves in markdown format, and can import your OneNote in one shot.

https://help.obsidian.md/import/onenote

BananaTrifleViolin@lemmy.world · 3 pts · 1y (1 reply)

You can convert using Evernote as an intermediary: https://github.com/zadam/trilium/wiki/Onenote

You'd need to hunt down a copy but there are mirrors since Evernote ended legacy version, and it'd need to be set up in wine to run in linux but it should do the job.

ocean@lemmy.selfhostcat.com · 1 pts · 1y

Thanks! I tried that method with a VM and it got stuck trying to connect to internet even though it had access. Weird…

starshipwinepineapple@programming.dev · 2 pts · 1y

The best way i found was obsidians import which was what i was trying to avoid. I was making standalone markdown files and after the import i needed to do some cleaning since obsidian or onenote did OCR on the images to create alt text but quotes in the alt text broke image links.

Dungrad@feddit.org · -4 pts · 1y (2 replies)
[ removed ]
andrewth09@lemmy.world · 2 pts · 1y (1 reply)

This lead to https://github.com/theohbrothers/ConvertOneNote2MarkDown

However, this has some restrictive OS requirements so it may not be applicable.

Dungrad@feddit.org · 1 pts · 1y
[ removed ]
SEO-Nayan76@gehirneimer.de · -4 pts · 1y
[ removed ]