Browse Source

fix: image-link exclude some file-exts

rcmerci 4 years ago
parent
commit
2419657d8b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/components/block.cljs

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

@@ -762,7 +762,8 @@
                   (map-inline config label))
 
           ;; image
-          (show-link? config metadata s full_text)
+          (and (show-link? config metadata s full_text)
+               (not (contains? #{"pdf" "mp4" "ogg" "webm"} (util/get-file-ext s))))
           (image-link config url s label metadata full_text)
 
           (and (util/electron?)