ソースを参照

update org-link behavior previewing pdf

rcmerci 4 年 前
コミット
dc39896bde
1 ファイル変更3 行追加2 行削除
  1. 3 2
      src/main/frontend/components/block.cljs

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

@@ -646,7 +646,9 @@
       (or
        (and
         (nil? metadata-show)
-        (text/image-link? img-formats s))
+        (or
+         (config/local-asset? s)
+         (text/image-link? img-formats s)))
        (true? (boolean metadata-show)))))))
 
 (defn inline
@@ -749,7 +751,6 @@
                   (map-inline config label))
 
           (and (util/electron?)
-               (config/local-asset? s)
                (show-link? config metadata s full_text))
           (asset-reference (second (first label)) s)