New Tool for Migration from OneNote - updated and improved version

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