Skip to content
Prose diffs for any document format supported by Pandoc
HTML JavaScript TeX CSS
Branch: master
Clone or download
Latest commit ffafe65 Oct 2, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
test update pandoc Jul 20, 2019
.gitignore Initial commit Apr 21, 2018
LICENSE Initial commit Apr 21, 2018 Update Oct 3, 2019
cli.js support repeated options Jul 20, 2019
index.js support repeated options Jul 20, 2019
package-lock.json 0.5.0 Jul 20, 2019
package.json 0.5.0 Jul 20, 2019
pandiff.css html output Apr 26, 2018




First install Pandoc and npm, then run:

npm install -g pandiff


pandiff test/ test/
{~~Old~>New~~} Title



1.  Lorem ipsum dolor {++sit ++}amet
2.  {++[consectetur adipiscing
3.  Lorem{-- ipsum--} dolor sit amet

I really love *italic {~~fonts~>font-styles~~}* {~~here.~>there.~~}

``` diff
 print("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt")

Don’t go around saying {--to people that --}the world owes you a
living. The world owes you nothing. It was here first. {~~One~>Only
one~~} thing is impossible for God: To find{++ any++} sense in any
copyright law on the planet. Truth is stranger than fiction, but it is
because Fiction is obliged to stick to possibilities; Truth isn’t.


pandiff --help
Usage: pandiff [OPTIONS] FILE1 FILE2
  -F, --filter=STRING
  -f, --from=FORMAT
  -h, --help
  -o, --output=FILE
  -s, --standalone
  -t, --to=FORMAT
  -v, --version

Git integration

Configure git by running the following commands:

git config --global difftool.pandiff.cmd 'pandiff "$LOCAL" "$REMOTE"'
git config --global alias.pandiff 'difftool -t pandiff -y'

Now you can use git pandiff wherever you would usually use git diff.

HTML output

pandiff -s -o diff.html

PDF output

pandiff -o diff.pdf

Word Track Changes

pandiff -o diff.docx
pandiff test/track_changes_move.docx
Here is some text.

{++Here is the text to be moved.++}

Here is some more text.

{--Here is the text to be moved.--}
You can’t perform that action at this time.