davidar / pandiff

Prose diffs for any document format supported by Pandoc
MIT License
293 stars 24 forks source link

Feature request: track changes for DOCX, but output to Markdown #46

Open pvstodghill opened 9 months ago

pvstodghill commented 9 months ago

I would like a Markdown output file with Pandoc-style track changes markup instead of CriticMarkup. There doesn't appear to be a combination of command line options that gives this result. This is what I end up doing instead,

T=$(mktemp)
pandiff old.md new.md -t docx -o ${T}
pandoc -f docx - markdown+mark --track-changes=all ${T}

The reason is that my workflow does some transformations on the markdown before running it through Pandoc to generate DOCX files:


pandiff old.md new.md -t docx_but_markdown | frob-the-markdown | pandoc -t docx -o output.docx