Make diff type switchable in the rendered html page.
We can use GitHub as an example:
Contributor guide
Tech stack
typescriptjavascripthtmlcss
Domain
frontend
Issue type
feature
DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
3
Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
1-2 days
Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
stale
ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
clear
Prerequisites
JavaScriptHTML/CSSfamiliarity with diff2html
Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
60
Research direction
Examine the main rendering module (likely src/diff2html.js or similar) to understand how diff lines are currently rendered. Look for a way to add a UI toggle that switches between unified and split views. Consider using GitHub's implementation as a reference. Check if there are any existing templates or configuration for diff types.