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)]