You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ class Diff extends PureComponent {
75
75
| newValue |`string \| Object`|`''`| New value as string (or Object if using `diffJson`). |
76
76
| splitView |`boolean`|`true`| Switch between `unified` and `split` view. |
77
77
| disableWordDiff |`boolean`|`false`| Show and hide word diff in a diff line. |
78
-
| compareMethod |`DiffMethod \| (string, string) => diff.Change[]`|`DiffMethod.CHARS`| JsDiff text diff method used for diffing strings. Check out the [guide](https://github.com/praneshr/react-diff-viewer/tree/v3.0.0#text-block-diff-comparison) to use different methods. It uses an existing diff method when a `DiffMethod` enum is passed. If a function is passed, that function is used as the diff method. |
78
+
| compareMethod |`DiffMethod \| (string, string) => diff.Change[]`|`DiffMethod.CHARS`|Uses an existing diff method when a `DiffMethod` enum is passed. If a function is passed, that function is used as the diff method. <br /> <br /> JsDiff text diff method used for diffing strings. Check out the [guide](https://github.com/praneshr/react-diff-viewer/tree/v3.0.0#text-block-diff-comparison) to use different methods. |
79
79
| renderGutter |`(diffData) => ReactNode`|`undefined`| Function that can be used to render an extra gutter with various information next to the line number. |
80
80
| hideLineNumbers |`boolean`|`false`| Show and hide line numbers. |
81
81
| alwaysShowLines |`string[]`|`[]`| List of lines to always be shown, regardless of diff status. Line number are prefixed with `L` and `R` for the left and right section of the diff viewer, respectively. For example, `L-20` means 20th line in the left pane. `extraLinesSurroundingDiff` applies to these lines as well. |
0 commit comments