I'd like to propose a few enhancements and fixes to the version history diff views:
- Binary file support: Currently, attempting to diff binary files (like images) doesn't render them visually. It would be great to have side-by-side previews for images and basic metadata fallbacks for other binary types.
- View toggle: Add a toggle bar to switch between the rendered markdown view and the raw diff view.
- Performance optimizations: Large files can freeze the UI when calculating diffs. We can resolve this by:
- Deferring the heavy synchronous computation using
setTimeout to yield to the browser's paint cycle.
- Setting
matching: 'none' in diff2html config to avoid expensive line matching algorithms on large diffs.
- Disabling
drawFileList in the config to hide the redundant file header.
I already have these changes fully implemented, tested, and ready to submit in a PR. Let me know if it's okay to open the PR for this!
Attached the reference output images:

I'd like to propose a few enhancements and fixes to the version history diff views:
setTimeoutto yield to the browser's paint cycle.matching: 'none'indiff2htmlconfig to avoid expensive line matching algorithms on large diffs.drawFileListin the config to hide the redundant file header.I already have these changes fully implemented, tested, and ready to submit in a PR. Let me know if it's okay to open the PR for this!
Attached the reference output images: