A bug was discovered where text disappears when searched if it’s wrapped in <details><summary><kbd><b>. FHTzoob demonstrated this issue and riking provided the CSS rule causing the problem: kbd * * { display: none; }. This rule is triggered when the search tries to highlight the found word, causing the text to disappear. cpradio explained this in more detail. Further testing by FHTzoob revealed that the issue isn’t limited to <details><summary>, but occurs with any <kbd><b> combination. A fix has been pushed by zogstrip and is available on GitHub: https://github.com/discourse/discourse/commit/2a7af5e718583efef800fcfe19640e85b3815407.
CSS Rule what is happening, in short search is trying to put a highlight on your found word and the extra tag it places on your word causes kbd * * to run its display none rule.