I tried to co-locate the function extractHighlightedText
inside this useMemo
, however all the content already has a type(hashtag, text, media and so on...) and it's quite tricky then.
So…
I don't know if I fully agree about moving the logic of this specific fragment inside this useMemo
. All fragment-related logic now lives in a single place and it's easy to reason. Eventually the…
I implemented the changes using the transformText
approach. Now there is a new type for the ParsedFragment
interface.
Hey @Giszmo, it will work for multiple words. However the highlight is just being applied exactly on what was typed.
On the second image, I search for two words in isolation,…
Hey @Giszmo, it will work for multiple words. However the highlight is just being applied exactly on what was typed.
On the second image, I search for two words in isolation, however…