Reuse starting db conn

Also move circular dep hack to ns that both nbb and cljs can use
This commit is contained in:
Gabriel Horner
2022-05-22 21:55:08 -04:00
parent 3bc2479181
commit 89d73bc178
7 changed files with 30 additions and 33 deletions

View File

@@ -3,14 +3,9 @@
[frontend.format.adoc :refer [->AdocMode]]
[frontend.format.protocol :as protocol]
[logseq.graph-parser.mldoc :as gp-mldoc]
[logseq.graph-parser.text :as text]
[logseq.graph-parser.util :as gp-util]
[clojure.string :as string]))
;; TODO: Properly fix this circular dependency:
;; mldoc/->edn > text/parse-property > mldoc/link? ->mldoc/inline->edn + mldoc/default-config
(set! gp-mldoc/parse-property text/parse-property)
(defonce mldoc-record (->MldocMode))
(defonce adoc-record (->AdocMode))