mirror of https://github.com/logseq/logseq
fix(pdf): support sub assets for pdf files #3024
parent
601d14f529
commit
839b85e4df
|
@ -36,10 +36,14 @@
|
||||||
full-path
|
full-path
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(str "file://" ;; TODO: bfs
|
(let [full-path (string/replace full-path #"^[.\/\\]+" "")
|
||||||
(util/node-path.join
|
full-path (if-not (string/starts-with? full-path config/local-assets-dir)
|
||||||
(config/get-repo-dir (state/get-current-repo))
|
(util/node-path.join config/local-assets-dir full-path)
|
||||||
"assets" filename)))]
|
full-path)]
|
||||||
|
(str "file://" ;; TODO: bfs
|
||||||
|
(util/node-path.join
|
||||||
|
(config/get-repo-dir (state/get-current-repo))
|
||||||
|
full-path))))]
|
||||||
(when-let [key
|
(when-let [key
|
||||||
(if web-link?
|
(if web-link?
|
||||||
(str (hash url))
|
(str (hash url))
|
||||||
|
|
Loading…
Reference in New Issue