Merge branch 'master' into zotero/poc

This commit is contained in:
Weihua Lu
2021-07-15 19:20:50 +08:00
21 changed files with 187 additions and 97 deletions

View File

@@ -1416,7 +1416,8 @@
(when (and local? delete-local?)
;; FIXME: should be relative to current block page path
(when-let [href (if (util/electron?) href (second (re-find #"\((.+)\)$" full-text)))]
(fs/unlink! (config/get-repo-path
(fs/unlink! repo
(config/get-repo-path
repo (-> href
(string/replace #"^../" "/")
(string/replace #"^assets://" ""))) nil)))))