pub fn compute(previous: &str, current: &str, max_changes: usize) -> GitDiffExpand description
Compute the unified text + AST between two already-normalized markdown
strings. max_changes caps the number of AST change-lines; on overflow the
AST is marked truncated (the full snapshot is retained by the caller, so
the change is recoverable). The text surface is always complete.