mirror of https://github.com/logseq/logseq
parent
ee95b5070b
commit
be01f3e0b7
|
@ -2241,24 +2241,3 @@
|
|||
(when alias? [:span.text-sm.font-medium.opacity-50 " Alias"])]
|
||||
(blocks-container blocks config))])))]
|
||||
(blocks-container blocks config))])
|
||||
|
||||
(comment
|
||||
;; timestamps
|
||||
;; [2020-02-10 Mon 13:22]
|
||||
;; repetition
|
||||
(def r1 "<2005-10-01 Sat +1m>")
|
||||
;; TODO: mldoc add supports
|
||||
(def r2 "<2005-10-01 Sat +1m -3d>")
|
||||
|
||||
(def l
|
||||
"1. First item
|
||||
hello world
|
||||
2. Second item
|
||||
nice
|
||||
3. Third item")
|
||||
|
||||
(def t
|
||||
"| Name | Phone | Age |
|
||||
|-------+-------+-----|
|
||||
| Peter | 1234 | 17 |
|
||||
| Anna | 4321 | 25 |"))
|
||||
|
|
|
@ -171,13 +171,16 @@
|
|||
(let [properties (into {} properties)
|
||||
page-refs (->>
|
||||
(map (fn [v]
|
||||
(when v
|
||||
(->> (re-seq text/page-ref-re v)
|
||||
(map second)
|
||||
(map string/lower-case))))
|
||||
(when (string? v)
|
||||
(let [page-refs (->> (re-seq text/page-ref-re v)
|
||||
(map second))
|
||||
tags (->> (string/split v #",")
|
||||
(filter (fn [s] (= \# (first s))))
|
||||
(map (fn [s] (subs s 1))))]
|
||||
(concat page-refs tags))))
|
||||
(vals properties))
|
||||
(apply concat)
|
||||
(distinct))
|
||||
(remove string/blank?))
|
||||
properties (->> properties
|
||||
(medley/map-kv (fn [k v]
|
||||
(let [v (string/trim v)
|
||||
|
|
Loading…
Reference in New Issue