Move gp-util and gp-config to the common dep

This commit is contained in:
Tienson Qin
2024-01-03 16:38:05 +08:00
parent 46eacf6740
commit b7d9098e80
88 changed files with 498 additions and 505 deletions

View File

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