Prevent algolia api from searching hide content

Hi, I’m currently developing a react site on Netlify and i use the Algolia search for my site. I found one problem in my search: when Algolia makes the crawl on my site it searches for ALL the content on the page even the display:none content. There is a way to avoid this?

Hi. On what element is your display:none applied? We currently check and remove only the <div> tags that have this style.

Also, note that the style needs to be inlined on the element. We use Cheerio to manipulate the DOM, and it doesn’t apply CSS, so styles coming from CSS files are ignored.