Browse Source

add embed-data link-type

related to https://github.com/logseq/mldoc/pull/110
rcmerci 4 years ago
parent
commit
22e429cc84
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/main/frontend/components/block.cljs

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

@@ -290,7 +290,7 @@
                     config/publishing?
                     (subs href 1)
 
-                    (= protocol "data")
+                    (= "Embed_data" (first url))
                     href
 
                     :else
@@ -871,6 +871,9 @@
                 [:span (util/format "[[%s]]" page)]
                 (page-reference (:html-export? config) page config label*)))))
 
+        ["Embed_data" src]
+        (image-link config url src nil metadata full_text)
+
         ["Search" s]
         (cond
           (string/blank? s)