Update src/main/frontend/modules/outliner/datascript.cljc

Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com>
This commit is contained in:
Tienson Qin
2023-05-22 13:16:13 +08:00
parent 3b92fe638a
commit 3cc0e0ad6b

View File

@@ -102,7 +102,7 @@
new-content (-> (:block/content ref)
(string/replace (re-pattern (util/format "(?i){{embed \\(\\(%s\\)\\)\\s?}}" (str (:block/uuid block))))
block-content)
(string/replace (util/format "((%s))" (str (:block/uuid block)))
(string/replace (block-ref/->block-ref (str (:block/uuid block))))
block-content))]
{:tx [[:db/retract (:db/id ref) :block/refs (:db/id block)]
[:db/retract (:db/id ref) :block/path-refs (:db/id block)]