mirror of
https://github.com/outline/outline.git
synced 2026-11-21 05:24:03 +03:00
* fix: Search result context cut mid-word by earlier highlights The snippet indexes were calculated against the plain document text, then used to slice the highlighted copy. Every highlight before the slice start adds seven characters, so the snippet began too late and could open inside a bold tag. Slice first and highlight the slice, so both indexes apply to the same string. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * Feedback --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>