enhance(ux): same node render for both reference and embed

also use icon-component/get-node-icon-cp when possible
This commit is contained in:
Tienson Qin
2025-11-12 03:57:18 +08:00
parent 3b99f1344f
commit a7c8212df5
6 changed files with 58 additions and 113 deletions

View File

@@ -13,15 +13,9 @@
[frontend.storage :as storage]
[frontend.util :as util]
[logseq.db :as ldb]
[logseq.graph-parser.text :as text]
[missionary.core :as m]
[promesa.core :as p]))
(defn sanity-search-content
"Convert a block to the display contents for searching"
[format content]
(text/remove-level-spaces content format (config/get-block-pattern format)))
(defn search
"The aggretation of search results"
([q]