Move config fns and remaining util fns that mldoc depends on

This commit is contained in:
Gabriel Horner
2022-05-04 11:47:26 -04:00
parent 6c91854c71
commit a58a411567
19 changed files with 95 additions and 83 deletions

View File

@@ -5,6 +5,7 @@
[lambdaisland.glogi :as log]
[cljs-bean.core :as bean]
[frontend.util :as util]
[logseq.graph-parser.util :as gp-util]
[frontend.text :as text]))
(defn diff
@@ -54,7 +55,7 @@
(+ pos 2)
(contains? inline-special-chars (util/nth-safe markup pos))
(let [matched (->> (take-while inline-special-chars (util/safe-subs markup pos))
(let [matched (->> (take-while inline-special-chars (gp-util/safe-subs markup pos))
(apply str))
matched? (and current-line (string/includes? current-line (string/reverse matched)))]
(if matched?