Expand description
Text diff views (agent view and CriticMarkup). Git/GitHub unified patches of complete document text snapshots, and other review presentations.
DOCX snapshots use the same paragraph, table, and revision-mark view
as jubarte debug --check text, without clipping or a hunk limit.
The patches are for review only; they do not patch the binary DOCX
package. They back jubarte diff and the Python and WASM bindings’
diff_text / diff_documents shapes.
Structs§
- Text
Options - Review presentation options for
diff_text_viewanddiff_documents_view; the raw unified patch APIs above (diff_text,diff_documents) stay unclipped. - Unified
Options - Names written on the patch headers and the number of unchanged
context lines around each change. Git’s
a/andb/prefixes are added automatically by every formatter that prints them.
Enums§
- Text
Format - Presentation of a document’s line changes.
Functions§
- diff_
documents - Compares two DOCX byte slices or two Markdown strings as a standard
unified patch without constructing a redline. Backs
jubarte diff old.docx new.docxand the bindings. - diff_
documents_ view - Compares two DOCX bytes or Markdown text snapshots in the review
presentation
options.formatnames. DOCX revision acceptance runs on the package before text extraction, so removed paragraphs and table rows cannot contribute phantom line numbers. - diff_
text - Compares two plain-text snapshots (
old,new) as a standard unified patch (Git C-style quoted names,@@hunk headers,context-line surroundings,\ No newline at end of filemarkers when the last line has no newline). Backsjubarte diffand the bindings; CRLF line ends are normalized to LF. Returns an empty string whenold == new. - diff_
text_ view - Compares two plain-text snapshots (
old,new) in the review presentationoptions.formatnames. - document_
text - Reads a complete textual snapshot of
source— the same viewjubarte debug --check textprints, preserving the snapshots’ tracked marks. Kept for callers that need the raw text of one document before comparing it; the review paths go throughdiff_text_view/diff_documents_view.