Skip to content

Instantly share code, notes, and snippets.

@stong
Created March 19, 2024 17:50
Show Gist options
  • Save stong/0ea8bef163c0b2ef97a59dbfe3599d78 to your computer and use it in GitHub Desktop.
Save stong/0ea8bef163c0b2ef97a59dbfe3599d78 to your computer and use it in GitHub Desktop.
Pandoc docx git diff gitconfig
# Documents
*.doc binary
*.docx binary diff=pandoc
*.xls binary
*.xlsx binary
*.xlt binary
*.xltm binary
*.pdf binary
*.ppt binary
*.pptx binary
*.ps binary
[diff "pandoc"]
textconv=pandoc --to=markdown-auto_identifiers-header_attributes +RTS -V0 -RTS
prompt = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment