Use a custom highlight tag
masterBy default,
Highlighter wraps matches in a <mark> element. You can provide a custom React component to the highlightTag prop. Your custom component must accept children (the highlighted text) and highlightIndex (the index of the match) as props.