fix: resize image

pull/2598/head
rcmerci 2021-08-10 15:17:50 +08:00 committed by Tienson Qin
parent 5e09f0bc43
commit 9f06439309
1 changed files with 1 additions and 1 deletions

View File

@ -821,7 +821,7 @@
(if (and (= format :org)
(show-link? config nil page page)
(not (contains? #{"pdf" "mp4" "ogg" "webm"} (util/get-file-ext page))))
(image-link config url page nil nil page)
(image-link config url page nil metadata full_text)
(let [label* (if (seq (mldoc/plain->text label)) label nil)]
(if (and (string? page) (string/blank? page))
[:span (util/format "[[%s]]" page)]