digest markdown by python
enzyme
- Create a folder with the same name as the file.
- Copy the
file.md
into the folder.
- Rename the origin file as
origin_file.md
.
- Read the
file.md
in the folder.
- Add the file name in front of each level two title and add double square brackets to make it a wiki link.
- Create a series of new files named
filename - a title.md
.
- Clip the content between two level two headings into the new file.
- Delete the original content.
Here’s a Python script that does the steps you specified:
python