mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 19:06:21 +00:00
Move gp-util and gp-config to the common dep
This commit is contained in:
4
src/main/frontend/external/roam.cljs
vendored
4
src/main/frontend/external/roam.cljs
vendored
@@ -7,7 +7,7 @@
|
||||
[clojure.string :as string]
|
||||
[goog.string :as gstring]
|
||||
[logseq.graph-parser.util.block-ref :as block-ref]
|
||||
[logseq.graph-parser.util :as gp-util]
|
||||
[logseq.common.util :as common-util]
|
||||
[logseq.graph-parser.text :as text]))
|
||||
|
||||
(defonce all-refed-uids (atom #{}))
|
||||
@@ -37,7 +37,7 @@
|
||||
(defn macro-transform
|
||||
[text]
|
||||
(string/replace text macro-pattern (fn [[original text]]
|
||||
(let [[name arg] (gp-util/split-first ":" text)]
|
||||
(let [[name arg] (common-util/split-first ":" text)]
|
||||
(if name
|
||||
(let [name (text/page-ref-un-brackets! name)]
|
||||
(gstring/format "{{%s %s}}" name arg))
|
||||
|
||||
Reference in New Issue
Block a user