Skip to content

Commit c5e6f84

Browse files
davidfan168Aeolun
authored andcommitted
update readme again
1 parent d78fcc0 commit c5e6f84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Diff extends PureComponent {
7575
| newValue | `string \| Object` | `''` | New value as string (or Object if using `diffJson`). |
7676
| splitView | `boolean` | `true` | Switch between `unified` and `split` view. |
7777
| 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. |
7979
| renderGutter | `(diffData) => ReactNode` | `undefined` | Function that can be used to render an extra gutter with various information next to the line number. |
8080
| hideLineNumbers | `boolean` | `false` | Show and hide line numbers. |
8181
| 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

Comments
 (0)