Tracked Changes (Red Lining) on Rich Text Editor
Flipped the problem: instead of diffing rich text (inherently problematic), I built a Lexical plugin intercepting keystrokes and clipboard events, manually modifying the document tree. While there were many cases to cover—add, delete, backspace, paste, cut—each multiplied by cursor position, selection state, and existing tracked changes—this was a finite, solvable set. Delivered to production in 2 months.
