elements icon indicating copy to clipboard operation
elements copied to clipboard

DevPortal: Search Result Highlighting

Open philsturgeon opened this issue 4 years ago • 0 comments

Ah - @lottamus perhaps not using the right highlighted result property? Platform renders a bit better (not entirely sure if it has markdown stripped, didn't dig in enough), and uses this little hook to highlight the matches: https://github.com/stoplightio/platform-internal/blob/v2/packages/ninja/src/hooks/useHighlightedText.tsx

Screen Shot 2021-05-11 at 5 06 29 PM

Originally posted by @marbemac in https://github.com/stoplightio/elements/issues/1194#issuecomment-839219235

philsturgeon avatar May 13 '21 17:05 philsturgeon