New Tool for Migration from OneNote - updated and improved version

Hello,

I’m trying convert OneNote notebooks via ConvertOneNote2MarkDown script and I found one issue. It seems like author-stamps are 100% ignored. Author-stamps are created for text blocks/notes when document is shared by more people in cooperative work (there is author name and timestamps).

Is there any way to preserve this?

I would appreciate any advice.

I made a small Python script to reformat the output .md files.

The reformatting I am doing is the following:

  • Removing double new lines, when applicable
  • Replacing the media folder location to Attachments
  • Reformatting the YAML to be more compatible with dataview
    • Converting date time to ISO format, considering timezone.
    • Adding tags
    • Adding a project name
  • Adding breadcrumbs at the top of the note, to link all the notes
  • Ensure all the files are UTF-8 when read and write
  • Rename folders from media to Attachments
  • Delete empty folders

The re-formatted note looks like:

Here is the Python file: Reformat .md to better suit Obsidian formatting · GitHub

4 Likes

Thank you for this script!

When I run it everything goes smoothly except for media files. There is a new folder created “Attachments” and all files are moved there but links in the notes don’t update:

I would appreciate any tips on how I can update media file links in my notes.

Mea culpa.
Turned out that I just needed to enable:
Settings > Files & Links > Automatically update internal links.

Thanks again for the script. It is a great help for the migration process!

I had updated the code. Some cleanup, and also create a .csv with the changelog.

I’ve found this tool easy hope helps someone as it did with me :slight_smile:

2 Likes

I can’t seem to make it work. Any help would be highly appreciated.


That’s the error message I get. Any Ideas?

Hi all, I am new to this Migration tool. I read that back in July 2020 having MS Word installed was a requirement, is it still the case today? I hope not, because I do not own it, and I would rather not having to pay its monthly fees.

Another option I have discovered for exporting OneNote notes as markdown files is to use the OneMore plugin in OneNote. This plugin adds the option to export any note or a group of notes in a section as markdown files. This option can be accessed by just right clicking on the note in the note list.
@JavierDL This newer option does not require Word but does require the OneMore plugin.

2 Likes

As of now lots of hiccups with OneMore. E.g., shredded tables if you background-colored its cells. No transformation of inline links (they point to OneNote).
Seems to lag behind the official importer plugin for Obsidian functionality-wise.