Finish shortcut dispatch and verify file operation safeguards

This commit is contained in:
eezd committed 2026-10-21 16:34:29 +08:00
1 parent e028614dba
commit 0ce509a0fe
6 files changed
+53 -6

No files matched your search

+3
View File
@@ -63,6 +63,9 @@ func (v *Vault) Export(ctx context.Context, paths []string) (result *os.File, na
}
var linkError error
transformMarkdownLines(content, importRef, func(line []byte) []byte {
if linkError != nil {
return line
}
return transformOutsideCode(line, func(text []byte) []byte {
for _, span := range importLinkSpans(text) {
target := string(text[span.start:span.end])