diff --git a/src/main/frontend/components/cmdk/core.cljs b/src/main/frontend/components/cmdk/core.cljs index 648e4d6f19..9640a99446 100644 --- a/src/main/frontend/components/cmdk/core.cljs +++ b/src/main/frontend/components/cmdk/core.cljs @@ -262,16 +262,16 @@ "Return hiccup of highlighted content FTS result" [content q] (when-not (or (string/blank? content) (string/blank? q)) - [:div (loop [content content ;; why recur? because there might be multiple matches - result []] - (let [[b-cut hl-cut e-cut] (text-util/cut-by content "$pfts_2lqh>$" "$$" "$$") ; sqlite matched + [:span {"data-testid" title} + (highlight-content-query title input)] + title) :header (when (:block/parent entity) (block/breadcrumb {:disable-preview? true :search? true} repo (:block/uuid page)