mirror of
https://github.com/logseq/logseq.git
synced 2026-04-30 08:56:29 +00:00
fix: use property/properties-ast? instead
This commit is contained in:
@@ -21,12 +21,6 @@
|
||||
(vector? block)
|
||||
(= "Heading" (first block))))
|
||||
|
||||
(defn properties-block?
|
||||
[block]
|
||||
(and
|
||||
(vector? block)
|
||||
(= "Properties" (first block))))
|
||||
|
||||
(defn get-tag
|
||||
[block]
|
||||
(when-let [tag-value (and (vector? block)
|
||||
@@ -746,7 +740,7 @@
|
||||
title (when (heading-block? (first ast))
|
||||
(:title (second (first ast))))
|
||||
body (vec (if title (rest ast) ast))
|
||||
body (drop-while properties-block? body)
|
||||
body (drop-while property/properties-ast? body)
|
||||
result (cond->
|
||||
(if (seq body) {:block/body body} {})
|
||||
title
|
||||
|
||||
Reference in New Issue
Block a user