react-diff-viewer
react-diff-viewer copied to clipboard
A simple and beautiful text diff viewer component made with Diff and React.
To be able to use the package in my library (which is built as a dual ESM/CJS lib via `tsup`) , I had to resort to this hack: ```ts import...
There seems to be some bug with handling of added/removed empty lines. E.g. if you compare two simple strings: ``` oldValue="a\nb" newValue="a\n\nb" ``` It shows as no difference: 
I am uploading a zip file and wants to show unzip file text content in the front end the file unzipping api is working fine,And react diff viewer is working...
If the same character is Expanded, what is the difference between the expanded part and the non-expanded part? 
Apparently, `codeFold` is missing in `ReactDiffViewerStylesOverride` interface, though it's marked as an option to configure in `README.md`. I'm adding it in this PR.
I am wondering what is the performance ceiling, say, how many lines of code maximum (approx) can this component compare one time without causing the browser crash?
Is it possible to reverse diff? To have new changes on the left and old changes on the right
Can I hide the 'Expand 1 lines...' at the top 
Hello, I'm developing a system and I have a problem. When I made a difference with some large texts, the client side is breaking when there is a lot of...
 原文中第二十行的 ”title"没有和 对比文件中的title对比