Trevixal API
    Preparing search index...

    Function linkifyText

    • Split plain text into text nodes with every URL wrapped in a link mark: what pasting a paragraph that mentions a few sites should produce. Returns null when the text holds no URL, so callers can fall back to a plain insert.

      Parameters

      • schema: Schema
      • text: string
      • marks: readonly Mark[] = []

      Returns EditorNode[] | null