Skip to main content

patch_documents

Function patch_documents 

Source
pub fn patch_documents(
    old: Source<'_>,
    new: Source<'_>,
    redline_options: &RedlineOptions<'_>,
    options: &PatchOptions,
) -> Result<Patch, MarkdownError>
Expand description

The changes from old to new as a patch. Two Markdown documents give patch_markdown’s patch, at lines; otherwise the documents are compared as redline compares them and each hunk is at a pN of the Word document on its side (of the redline, accepted or rejected, where that side is Markdown). The comparer’s changes are the owner’s; a comment the old document has too is not a change.