Open chrisblakley opened 2 years ago
More info here: https://developer.mozilla.org/en-US/docs/Web/CSS/::highlight
The example given is way more complicated than this needs to be and actually makes it look more involved than it is.
However, I don't know if I love that this involves JavaScript at all... May just keep the existing Nebula highlighting since it only needs CSS.
Initial implementation ideas for this would be for search results to replace (or extend) the Nebula highlighting function, and it could also assist the Nebula keyword filter function.
https://www.w3.org/TR/css-highlight-api-1/
https://caniuse.com/mdn-api_highlight