fix: node references do not appear on blocks that contain a tag

fixes https://github.com/logseq/db-test/issues/43
This commit is contained in:
Tienson Qin
2024-09-04 11:10:14 +08:00
parent 5426360ef7
commit c23c15ca7e
7 changed files with 92 additions and 94 deletions

View File

@@ -37,8 +37,9 @@
(-> block
(dissoc :block/tags)
(update :block/title (fn [title]
(-> (db-content/replace-tags-with-page-refs title refs)
(db-content/page-ref->special-id-ref refs)))))))))]
(let [title' (db-content/replace-tags-with-page-refs title refs)]
(db-content/refs->special-id-ref (db/get-db) title' refs))
)))))))]
(editor-handler/paste-blocks blocks' {:keep-uuid? true}))))
(defn- paste-segmented-text