message: Fix highlight on non-strings
diff: @@ -11,23 +11,22 @@ import { InstantSearchParams } from '../types'
  * @returns string
  */
  function replaceHighlightTags(
  - value: string,
  + value: any,
  highlightPreTag?: string,
  highlightPostTag?: string
  ): string {
  - // Value has to be a string to have highlight.
  - // Highlight is applied by MeiliSearch (<em> tags)
  - // We replace the <em> by the expected tag for InstantSearch
  highlightPreTag = highlightPreTag || '__ais-highlight__'
  highlightPostTag = highlightPostTag || '__/ais-highlight__'
  - if (isString(value)) {
  - return value
  + // Highlight is applied by MeiliSearch (<em> tags)
  + // We replace the <em> by the expected tag for InstantSearch
  + const stringifiedValue = isString(value)
  + ? value
  + : JSON.stringify(value, null, 2)
  +
  + return stringifiedValue
  .replace(/<em>/g, highlightPreTag)
  .replace(/<\/em>/g, highlightPostTag)
  }
  - // We JSON stringify to avoid loss of nested information
  - return JSON.stringify(value)
  -}
  /**
  * @param {Record<string} formattedHit
  