Browse Source

use content instead of title when export block-references

related to https://github.com/logseq/mldoc/pull/27/commits/798f3831f330bd51059cb769978522e25b2f8ab1
rcmerci 4 years ago
parent
commit
7c8c82a883
1 changed files with 3 additions and 3 deletions
  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)}))