Migrate half the block deps to be nbb compatible

This commit is contained in:
Gabriel Horner
2022-05-11 17:37:03 -04:00
parent 22ddae8998
commit b83f6bbd19
18 changed files with 223 additions and 175 deletions

View File

@@ -6,7 +6,7 @@
[frontend.db :as db]
[frontend.format :as format]
[frontend.state :as state]
[frontend.util.property :as property]
[logseq.graph-parser.property :as gp-property]
[logseq.graph-parser.mldoc :as gp-mldoc]))
(defn with-parent-and-left
@@ -125,7 +125,7 @@
title (when (gp-block/heading-block? (first ast))
(:title (second (first ast))))
body (vec (if title (rest ast) ast))
body (drop-while property/properties-ast? body)
body (drop-while gp-property/properties-ast? body)
result (cond->
(if (seq body) {:block/body body} {})
title