mirror of
https://github.com/logseq/logseq.git
synced 2026-04-29 00:24:51 +00:00
Block references wip
This commit is contained in:
@@ -48,6 +48,12 @@
|
||||
(vector? block)
|
||||
(= "Timestamp" (first block))))
|
||||
|
||||
(defn- properties-block?
|
||||
[block]
|
||||
(and
|
||||
(vector? block)
|
||||
(= "Property_Drawer" (first block))))
|
||||
|
||||
(defn- paragraph-timestamp-block?
|
||||
[block]
|
||||
(and (paragraph-block? block)
|
||||
|
||||
@@ -26,11 +26,14 @@
|
||||
|
||||
(defn ->edn
|
||||
[content config]
|
||||
(if (string/blank? content)
|
||||
{}
|
||||
(-> content
|
||||
(parse-json config)
|
||||
(util/json->clj))))
|
||||
(try
|
||||
(if (string/blank? content)
|
||||
{}
|
||||
(-> content
|
||||
(parse-json config)
|
||||
(util/json->clj)))
|
||||
(catch js/Error _e
|
||||
[])))
|
||||
|
||||
(defrecord MldocMode []
|
||||
protocol/Format
|
||||
|
||||
Reference in New Issue
Block a user