The pandiff CLI tool allows you to compare files and generate a diff. It supports three primary modes of operation based on the number and type of files provided:
Compare two files: Provide two files as positional arguments to generate a diff between them.
pandiff FILE1 FILE2 [OPTIONS]
Track changes in a Word document: Provide a single .docx file to extract track changes.
pandiff FILE.docx [OPTIONS]
Normalise a Markdown file: Provide a single .md file to normalise its content.
pandiff FILE.md [OPTIONS]
Output is written to stdout.
# Compare two files
pandiff file1.md file2.md
# Track changes in a docx file
pandiff document.docx
# Normalise a markdown file
pandiff input.md