react-diff-viewer
react-diff-viewer copied to clipboard
How to hide whitespace changes
trafficstars
We are planning to use this library and need hide whitespace changes feature to the one similar to Github.
Here is the requirement: The whitespace changes should be visible when user selects that option and they along with the entire line should be removed from the diff when user opts to hide whitespace changes if the only diff on the line were whitespaces (just leading and trailing whitespaces will do).
If this is not already supported, can you give us a code snippet/way to incorporate this into your component and be able to use it for our use-case?