fix(editor): asset link when drop PDF file

pull/5377/head
Andelf 2022-05-19 20:33:19 +08:00
parent 421d800676
commit 941de325b8
1 changed files with 1 additions and 1 deletions

View File

@ -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?