And the problem is not search. Search outside of tags is easy and Sigil already has that capability. The hard one is replace. For example a simple word pair such as "good day" might it fact have span tags or italic or bold tags around only one of those two words. So for each word (and even partial words such as word starters with dropdown first letters) you would need to store and remember its parent tag so that when it comes time to replace, you are not accidentally removing mark up or destroying its well-formedness.
|