mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
fix(org): get right link href for file links
The following links should work well as external links in orgmode. [[file:/Users/ll/Downloads/test.pdf]] [[file:/Users/ll/Downloads/test.pdf][a pdf]]
This commit is contained in:
@@ -126,7 +126,9 @@
|
||||
[url]
|
||||
(match url
|
||||
["File" s]
|
||||
(string/replace s "file://" "")
|
||||
(-> (string/replace s "file://" "")
|
||||
;; "file:/Users/ll/Downloads/test.pdf" is a normal org file link
|
||||
(string/replace "file:" ""))
|
||||
|
||||
["Complex" m]
|
||||
(let [{:keys [link protocol]} m]
|
||||
|
||||
Reference in New Issue
Block a user