Home / GitHub Page

Script to import md files (with first line as title)

Import markdown files to Joplin with first line as title.

Usage:
  md_file_import.py <path_to_md_files> [--is_todo]
  md_file_import.py (-h | --help)
  md_file_import.py --version

Options:
  -h --help     Show this screen.
  --version     Show version.
  --is_todo     Are markdown files todos or not.
4 Likes

Thanks for sharing!

1 Like

How is this really different from the cli import function? What is your specific use case for the script?

Instead of using the file name as title, my script use the first line of md files as title. I wrote it for myself because i had 10k+ md files with the format of 0.md 1.md 2.md 3.md and in every file the title was in the first line of every file.