调整文件目录,markdown生成image的放到单独的目录下。

This commit is contained in:
liuwei
2026-01-14 15:48:39 +08:00
parent 9b2952d8df
commit f73c730fb4

View File

@@ -326,8 +326,8 @@ async def convert_md_str_to_image(md_content: str, output_image: str, max_retrie
project_root = os.getcwd()
project_root_path = Path(project_root).resolve()
# 创建临时目录
temp_dir = project_root_path / "temp"
# 创建临时目录 - temp/md2image
temp_dir = project_root_path / "temp" / "md2image"
try:
temp_dir.mkdir(parents=True, exist_ok=True)
except Exception as e: