Skip to content

Conversation

aurnik
Copy link
Contributor

@aurnik aurnik commented Dec 26, 2023

Fixes #10698

Cause of problem

Page aliases were getting formatted in the cmdk.cljs file, so when those results were being rendered as list_item, the text property wasn't a string. Thus, nothing would get highlighted.

Proposed solution

A lot of the search result formatting (of headers for blocks and whatnot) are already taking place in the list_item/v1.cljs file so we can just move the alias formatting there so that the highlighting works the same as for non-alias results.

Copy link
Collaborator

@xyhp915 xyhp915 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tiensonqin tiensonqin force-pushed the alias-search-highlighting branch from f22a698 to 0bb16eb Compare January 2, 2024 07:59
@tiensonqin tiensonqin merged commit 2fcffcb into logseq:master Jan 2, 2024
@aurnik aurnik deleted the alias-search-highlighting branch January 4, 2024 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New Search] No highlighting in search results for aliased pages
3 participants