Finish shortcut dispatch and verify file operation safeguards
This commit is contained in:
1 parent
e028614dba
commit
0ce509a0fe
6 files changed
+53
-6
No files matched your search
@@ -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])
|
||||
|
||||
Reference in new issue
Block a user