markdown file use local name after updown image
This commit is contained in:
@@ -187,8 +187,8 @@ def process_image_file(markdown_file_path):
|
||||
|
||||
# 构造新的文件名
|
||||
file_name, file_ext = os.path.splitext(markdown_file_path)
|
||||
new_file_path = f"{file_name}_lsky{file_ext}"
|
||||
|
||||
#new_file_path = f"{file_name}_lsky{file_ext}"
|
||||
new_file_path = f"{file_name}{file_ext}"
|
||||
# 保存为新文件
|
||||
with open(new_file_path, 'w', encoding='utf-8') as file:
|
||||
file.write(new_content)
|
||||
|
@@ -3,7 +3,8 @@ import requests
|
||||
|
||||
# 配置信息
|
||||
local_image_folder = 'downloaded_images'
|
||||
lsky_pro_url = 'http://192.168.107.248:18089/api/v1'
|
||||
#lsky_pro_url = 'http://192.168.107.248:18089/api/v1'
|
||||
lsky_pro_url = 'https://image.lqsjy.cn/api/v1'
|
||||
upload_endpoint = '/upload'
|
||||
token = '1|QJP2YEr9GIN52VBgmm5hCqV5DwBSvJLUKjnwcKB8'
|
||||
|
||||
|
Reference in New Issue
Block a user