Added search filter UI that highlights matching spans on the current page: - HTML: added match-count span and updated placeholder text - CSS: added .search-match styling with orange outline and .active state - JS: replaced cross-page API search with per-page span filtering Features: - Case-insensitive substring search over data-text attributes - Orange outline on matching spans, double outline on current match - Match count display (e.g., "3 of 12 matches") - Enter cycles forward through matches, Shift+Enter cycles backward - Escape clears search and blur input - Slash (/) focuses search input - Auto-scrolls current match into view with smooth animation Acceptance criteria: - Typing "foo" highlights all spans containing "foo" - Match count shows "X of Y matches" - Enter/Shift+Enter cycles through matches with viewport scroll - Escape clears search - Slash focuses search input |
||
|---|---|---|
| .. | ||
| benches | ||
| src | ||
| tests | ||
| build.rs | ||
| Cargo.toml | ||
| header | ||
| pdftract-cli.cdx.json | ||