(Bug) Search highlight doesn't work properly for code blocks
Author: nobabarCreated Sep 14, 2026Updated Sep 15, 2026
Labelsfrontend
What happened?
When searching content through the dedicated search bar (not the browser one), the matched text gets highlighted in yellow. But when the matched text is inside a code block, it gets highlighted in black, which just makes it disappear.
Possible solution?
No response
Version
The production version
Instance url
docs.numerique.gouv.fr
What browsers are you seeing the problem on?
Firefox
Relevant log output
Upload screenshots
Screenshot-without-search.png Screenshot-with-search.png
Contact Details
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Source: suitenumerique/docs