fix: store #tag as #[[uuid]] internally

This commit is contained in:
Tienson Qin
2024-11-28 18:00:38 +08:00
parent faf7f48860
commit cc27407699
5 changed files with 19 additions and 14 deletions

View File

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