Skip to content

Highlight search term occurence on page #83

@strogonoff

Description

@strogonoff

This may be best implemented after search overhaul.

Currently, clicking a search result takes the reader to the corresponding subresource. However, when multiple subresources contain the search term, it might be beneficial to highlight (in a more subtle way) other occurrences of the term on the page.

Caveat: search logic does stemming & other manipulation of the query, so a naive approach of highlighting the exact match could create an unwelcome discrepancy. Workarounds could be: 1) using Lunr somehow to report the location of the term (see more: link TBD), 2) TBD.

Highlighting:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions