Skip to main content

compute

Function compute 

Source
pub fn compute(previous: &str, current: &str, max_changes: usize) -> GitDiff
Expand 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.