Problem: When scanning search results, users need to quickly spot WHERE their search term appears in each verse. Without highlighting, they have to read each result carefully.
Solution: Wrap matched search terms in <mark> tags within search result text, giving them a visual highlight.
Not included: Highlighting in the reader after clicking a result (that's the Verse Jump + Highlight feature).
Expected behavior:
Highlight color: bg-amber-400/20 — subtle amber background matching the app's warm aesthetic.
Rendering: {@html highlightText(verse.text, query)} — server-sanitized, wrapped in <mark> tags.
TODO: Verify that highlightText() is XSS-safe (escapes HTML before inserting marks)
Implementation:
<mark> tags with highlight CSS classFiles:
apps/web/src/routes/(app)/search/+page.svelte (modify — add highlighting)Current: PLANNED Milestone: v1 Priority: Medium — significant usability improvement for search
Dependencies: