Fix code highlight on the search page
What does this MR do and why?
Fixes Global Search result keyword highlighting lost (#386538 - closed), introduced by Completely remove jQuery from GFM (!107218 - merged).
Also adds tests for the code highlighting behaviour on the search page.
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Open any project
- Type in a search query in the search input in the site header
- Switch to code results if necessary
- The code findings should be highilghted
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.