Restore in-body search + highlight (regressed by 34252e5); ?q= deep-links reuse it

#4
by thomwolf HF Staff - opened

PR #2 (search inside article bodies + in-doc highlight, Cmd-K focus, X clear) was merged (adc659d) then unintentionally reverted the next day by 34252e5, which uploaded a full app.js from a pre-merge local copy - wiping the feature and resurrecting the old command palette. This restores the feature onto current main (all later nav/layout work preserved) and removes the palette again.

It also refactors the ?q= deep-link highlight to REUSE this one mechanism: arriving at #/topic/

?q=term seeds the search box, syncs the X badge, and calls refreshDocHighlights - so X/Escape clears deep-link highlights too. Supersedes PR #3.

lvwerra changed pull request status to open
lvwerra changed pull request status to merged

Sign up or log in to comment