feat(scripts): 添加删除图片路径空格的脚本

添加 del-space.js 脚本用于自动处理 Markdown 文件中包含空格的图片路径
重命名相关图片文件并更新引用路径,同时处理特殊字符和多余的点
在 package.json 中添加对应的运行命令
This commit is contained in:
二叉树树
2026-01-09 13:13:34 +08:00
parent 5cb7d1c932
commit dce15c2e43
8 changed files with 316 additions and 3 deletions

View File

@@ -11,6 +11,7 @@
"type-check": "tsc --noEmit --isolatedDeclarations",
"new-post": "node scripts/new-post.js",
"clean": "node scripts/clean-unused-images.js",
"del-space": "node scripts/del-space.js",
"format": "biome format --write ./src",
"lint": "biome check --write ./src"
},