Skip to content

Commit 4f97b8c

Browse files
committed
Update README
1 parent 08f6a2b commit 4f97b8c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99

1010
A simple and beautiful text diff viewer component made with [Diff](https://github.com/kpdecker/jsdiff) and [React](https://reactjs.org).
1111

12-
Inspired from Github's diff viewer, it includes features like split view, inline view, word diff, line highlight and more. It is highly customizable and it supports almost all languages. Check out the [demo](https://praneshravi.in/react-diff-viewer/).
13-
14-
Check [here](https://github.com/praneshr/react-diff-viewer/tree/v1.0) for v1.0
12+
Inspired from Github's diff viewer, it includes features like split view, inline view, word diff, line highlight and more. It is highly customizable and it supports almost all languages.
1513

1614
## Install
1715

@@ -66,7 +64,7 @@ class Diff extends PureComponent {
6664
| newValue | `string` | `''` | New value as string. |
6765
| splitView | `boolean` | `true` | Switch between `unified` and `split` view. |
6866
| disableWordDiff | `boolean` | `false` | Show and hide word diff in a diff line. |
69-
| compareMethod | `DiffMethod` | `DiffMethod.CHARS` | JsDiff text diff method used for diffing strings. Check out the guide to use different method. |
67+
| compareMethod | `DiffMethod` | `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#compare-methods) to use different methods. |
7068
| hideLineNumbers | `boolean` | `false` | Show and hide line numbers. |
7169
| renderContent | `function` | `undefined` | Render Prop API to render code in the diff viewer. Helpful for [syntax highlighting](#syntax-highlighting) |
7270
| onLineNumberClick | `function` | `undefined` | Event handler for line number click. `(lineId: string) => void` |

0 commit comments

Comments
 (0)