add util.property & move unit-tests

This commit is contained in:
rcmerci
2021-05-13 16:07:18 +08:00
committed by Tienson Qin
parent b656d2d58f
commit e8c68a62e5
11 changed files with 416 additions and 388 deletions

View File

@@ -9,6 +9,7 @@
[datascript.core :as d]
[frontend.date :as date]
[frontend.text :as text]
[frontend.util.property :as property]
[medley.core :as medley]
[frontend.state :as state]
[frontend.db :as db]))
@@ -411,7 +412,7 @@
(drop-while #(= ["Break_Line"] %)))]
(recur headings (conj block-body ["Paragraph" other-body]) (rest blocks) timestamps' properties last-pos last-level children))
(text/properties-block? block)
(property/properties-block? block)
(let [properties (extract-properties block start_pos end_pos)]
(recur headings block-body (rest blocks) timestamps properties last-pos last-level children))