This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| import base64 | |
| import argparse | |
| import os | |
| import sys | |
| def export_images(md_file, update=False, folder=None): | |
| if not os.path.exists(md_file): | |
| print(f"Error: File '{md_file}' not found.") | |
| return |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # clean the git config | |
| git config --global --unset diff | |
| git config --global --unset diff.external | |
| git config --global --unset diff.tool | |
| git config --global --unset difftool.prompt | |
| git config --global --unset merge.tool | |
| # configure for DiffMerge | |
| # https://sourcegear.com/diffmerge/downloads.php | |
| git config --global diff.tool diffmerge |