(text: string, result: SearchResult)
| 485 | : text |
| 486 | |
| 487 | const highlight = (text: string, result: SearchResult) => |
| 488 | marked(text, matcherOf(result)) |
| 489 | |
| 490 | /** moves `start` forward to the beginning of a word, but never past `limit` */ |
| 491 | const wordStart = (text: string, start: number, limit: number) => { |