mirror of https://github.com/logseq/logseq
fix(editor): asset link when drop PDF file
parent
421d800676
commit
941de325b8
|
@ -1345,7 +1345,7 @@
|
|||
|
||||
(defn get-asset-file-link
|
||||
[format url file-name image?]
|
||||
(let [pdf? (and url (string/ends-with? url ".pdf"))]
|
||||
(let [pdf? (and url (string/ends-with? (string/lower-case url) ".pdf"))]
|
||||
(case (keyword format)
|
||||
:markdown (util/format (str (when (or image? pdf?) "!") "[%s](%s)") file-name url)
|
||||
:org (if image?
|
||||
|
|
Loading…
Reference in New Issue