소스 검색

use content instead of title when export block-references

related to https://github.com/logseq/mldoc/pull/27/commits/798f3831f330bd51059cb769978522e25b2f8ab1
rcmerci 4 년 전
부모
커밋
7c8c82a883
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/main/frontend/handler/export.cljs

+ 3 - 3
src/main/frontend/handler/export.cljs

@@ -240,7 +240,7 @@
         embed-blocks
         (mapv (fn [b] [(str (:block/uuid b))
                        [(get-blocks-contents repo (:block/uuid b))
-                        (:block/title b)]])
+                        (:block/content b)]])
               blocks)]
     {:embed_blocks embed-blocks
      :embed_pages pages-name-and-content}))
@@ -384,10 +384,10 @@
   (let [[block-refs page-refs]
         (get-page&block-refs-aux repo page false page&block-refs #{} #{})]
     {:embed_blocks
-     (mapv (fn [[title _content uuid id]]
+     (mapv (fn [[_title content uuid id]]
              [(str uuid)
               [(get-blocks-contents repo uuid)
-               title]])
+               content]])
            block-refs)
      :embed_pages (vec page-refs)}))