{"id":13533878,"url":"https://github.com/davidar/pandiff","last_synced_at":"2025-05-15T12:05:13.950Z","repository":{"id":31882843,"uuid":"130428602","full_name":"davidar/pandiff","owner":"davidar","description":"Prose diffs for any document format supported by Pandoc","archived":false,"fork":false,"pushed_at":"2025-05-04T03:49:27.000Z","size":844,"stargazers_count":329,"open_issues_count":16,"forks_count":24,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-05-04T04:20:20.434Z","etag":null,"topics":["comparison","criticmarkup","diff","document","html","markdown","pandoc","pdf","prose","word"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-21T01:25:30.000Z","updated_at":"2025-05-04T03:49:31.000Z","dependencies_parsed_at":"2024-01-12T17:35:47.263Z","dependency_job_id":"6d54491d-daf4-4931-9310-1f89cf201458","html_url":"https://github.com/davidar/pandiff","commit_stats":{"total_commits":69,"total_committers":4,"mean_commits":17.25,"dds":0.08695652173913049,"last_synced_commit":"d1d468b2c4d81c622ff431ef718b1bf0daaa03db"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidar%2Fpandiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidar%2Fpandiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidar%2Fpandiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidar%2Fpandiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidar","download_url":"https://codeload.github.com/davidar/pandiff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253411475,"owners_count":21904141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comparison","criticmarkup","diff","document","html","markdown","pandoc","pdf","prose","word"],"created_at":"2024-08-01T07:01:23.954Z","updated_at":"2025-05-15T12:05:08.930Z","avatar_url":"https://github.com/davidar.png","language":"TypeScript","readme":"# PanDiff\n\n[![Build Status](https://travis-ci.org/davidar/pandiff.svg?branch=master)](https://travis-ci.org/davidar/pandiff)\n[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/davidar/pandiff)\n\n## Features\n\n- Prose diffs for [any document format supported by Pandoc](https://pandoc.org/MANUAL.html)\n- Supported output formats:\n  - [CriticMarkup](http://criticmarkup.com/)\n  - HTML\n  - PDF, via LaTeX\n  - [Word docx](https://en.wikipedia.org/wiki/Office_Open_XML) with [Track Changes](https://support.office.com/en-us/article/track-changes-in-word-197ba630-0f5f-4a8e-9a77-3712475e806a)\n- Respects document structure, so won't produce broken markup like `wdiff`\n\n## Installation\n\nFirst install [Pandoc](https://pandoc.org/installing.html) and [npm](https://www.npmjs.com/get-npm), then run:\n\n```sh\nnpm install -g pandiff\n```\n\n## Usage\n\n```sh\npandiff test/old.md test/new.md\n```\n\n````markdown\n{~~Old~\u003eNew~~} Title\n====================\n\n{--![image](minus.png)--}\n\n{++![image](plus.png)++}\n\n1.  Lorem ipsum dolor {++sit ++}amet\n2.  {++[consectetur adipiscing\nelit](https://en.wikipedia.org/wiki/Lorem_ipsum)++}\n3.  Lorem{-- ipsum--} dolor sit amet\n\nI really love *italic {~~fonts~\u003efont-styles~~}* {~~here.~\u003ethere.~~}\n\n``` diff\n print(\"Hello\")\n-print(\"world.\")\n+print(\"world!\")\n print(\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt\")\n```\n\nDon’t go around saying {--to people that --}the world owes you a\nliving. The world owes you nothing. It was here first. {~~One~\u003eOnly\none~~} thing is impossible for God: To find{++ any++} sense in any\ncopyright law on the planet. Truth is stranger than fiction, but it is\nbecause Fiction is obliged to stick to possibilities; Truth isn’t.\n````\n\n### Options\n\n```sh\npandiff --help\n```\n\n```\nUsage: pandiff [OPTIONS] FILE1 FILE2\n      --bibliography=FILE\n      --csl=FILE\n      --columns=NUMBER\n      --extract-media=PATH\n  -F, --filter=STRING\n  -f, --from=FORMAT\n  -h, --help\n      --highlight-style=STRING\n      --lua-filter=FILE\n      --mathjax=BOOL\n      --mathml=BOOL\n  -o, --output=FILE\n      --pdf-engine=STRING\n      --reference-dic=FILE\n      --reference-links\n      --resource-path=PATH\n  -s, --standalone\n  -t, --to=FORMAT\n  -v, --version\n      --wrap=STRING\n```\n\n### Git integration\n\nConfigure git by running the following commands:\n\n```sh\ngit config --global difftool.pandiff.cmd 'pandiff \"$LOCAL\" \"$REMOTE\"'\ngit config --global alias.pandiff 'difftool -t pandiff -y'\n```\n\nNow you can use `git pandiff` wherever you would usually use `git diff`.\n\n### HTML output\n\n```sh\npandiff old.md new.md -s -o diff.html\n```\n\n[![](test/diff.html.png)](https://rawgit.com/davidar/pandiff/master/test/diff.html)\n\n### PDF output\n\n```sh\npandiff old.md new.md -o diff.pdf\n```\n\n[![](test/diff.pdf.png)](https://rawgit.com/davidar/pandiff/master/test/diff.pdf)\n\n### Word Track Changes\n\n```sh\npandiff old.md new.md -o diff.docx\n```\n\n```sh\npandiff test/track_changes_move.docx\n```\n\n```markdown\nHere is some text.\n\n{++Here is the text to be moved.++}\n\nHere is some more text.\n\n{--Here is the text to be moved.--}\n```\n","funding_links":[],"categories":["Uncategorized","TypeScript"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidar%2Fpandiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidar%2Fpandiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidar%2Fpandiff/lists"}