Enode — API Reference
    Preparing search index...
    • text split into matched / unmatched runs for the search highlight: every occurrence of every whitespace token of query (case-insensitive, as the search itself matches) is marked; overlapping hits merge. No query → one unmatched run.

      Parameters

      • text: string
      • query: string

      Returns HighlightSegment[]