Explorar o código

fix: resize image

rcmerci %!s(int64=4) %!d(string=hai) anos
pai
achega
9f06439309
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/frontend/components/block.cljs

+ 1 - 1
src/main/frontend/components/block.cljs

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