/Markdown-Format-Fixer

help migrate from Apple Notes.app

Primary LanguagePythonMIT LicenseMIT

Markdown Format Fixer for Exporter

What is Exporter

  • http://falcon.star-lord.me/exporter/
  • export your notes in Apple's Notes app (which does not support any way for user to migrate his/her note to other app. Such as Bear or Notion that support Markdown)
  • with beautiful GUI, thanks, Chintan Ghate.

However

The output of Exporter is not perfect. There are some drawbacks, such as:

  • ******
this block will be rendered as only one line
but expected to be 2 lines

This script can:

  • delete h1.

  • auto delete for redundant symbels: * or _

  • Add line breaks

    • thanks to this gist: a very short note but have got over 100 stars

This script cannot:

  • Attachments and url-links are not imported correctly.

mentioned in https://apps.apple.com/us/app/exporter/id1099120373.

That is, you still have to do that manually.

I will do that for my notes after I finish this readme.

◢▆▅▄▃ 崩╰(〒皿〒)╯潰 ▃▄▅▆◣

Usage

Prepare python 3.7 and run: (all packages are build-in!)

python main.py [your folder]

It will generate a ./output folder with the same structure as your input
If you want to modify output folder, change the variable OUTPUTDIR in main.py