From 3cc0e0ad6b059e33749f4735f7760dcc1752816c Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Mon, 22 May 2023 13:16:13 +0800 Subject: [PATCH] Update src/main/frontend/modules/outliner/datascript.cljc Co-authored-by: Gabriel Horner <97210743+logseq-cldwalker@users.noreply.github.com> --- src/main/frontend/modules/outliner/datascript.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/frontend/modules/outliner/datascript.cljc b/src/main/frontend/modules/outliner/datascript.cljc index e87cd6fbe8..1b90b5f602 100644 --- a/src/main/frontend/modules/outliner/datascript.cljc +++ b/src/main/frontend/modules/outliner/datascript.cljc @@ -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)]