Skip to content

Commit 8cb7bf4

Browse files
committed
Updating README
1 parent 86c71bb commit 8cb7bf4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +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.
12+
Inspired from Github 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.
1313

1414
## Install
1515

@@ -83,7 +83,7 @@ class Diff extends PureComponent {
8383

8484
## Syntax Highlighting
8585

86-
Syntax highlighting is a bit tricky when combined with diff. Here, React Diff Viewer provides a simple render prop API to handle syntax highlighting. Use `renderContent(content: string) => JSX.Element` and your favorite syntax highlighting library to acheive this.
86+
Syntax highlighting is a bit tricky when combined with diff. Here, React Diff Viewer provides a simple render prop API to handle syntax highlighting. Use `renderContent(content: string) => JSX.Element` and your favorite syntax highlighting library to achieve this.
8787

8888
An example using [Prism JS](https://prismjs.com)
8989

src/compute-lines.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export interface ComputedDiffInformation {
4040
right?: DiffInformation[];
4141
}
4242

43-
// See https://github.com/kpdecker/jsdiff/tree/v4.0.1#change-objects for more info on JsDiff Change Objects
43+
// See https://github.com/kpdecker/jsdiff/tree/v4.0.1#change-objects for more info on JsDiff
44+
// Change Objects
4445
export interface JsDiffChangeObject {
4546
added?: boolean;
4647
removed?: boolean;

0 commit comments

Comments
 (0)