Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

问题描述
当用户在Obsidian中粘贴截图后,如果对截图文件进行重命名操作,Markdown文件中的链接引用地址不会自动更新,导致链接失效。
解决方案
本PR修复了这个问题,主要包含以下改进:
1. 修复链接检测正则表达式
linkDetector.ts中的正则表达式,确保能正确匹配各种格式的链接2. 新增LinkUpdater类
LinkUpdater类来处理链接更新逻辑3. 集成到重命名流程
create.ts中集成了链接更新功能4. 改进路径处理
测试
相关文件
src/lib/linkDetector.ts- 修复链接检测逻辑src/lib/linkUpdater.ts- 新增链接更新类src/create.ts- 集成链接更新功能src/arrange.ts- 更新重命名逻辑