Fixed typos in usage documentation

This commit is contained in:
Ismail Magomedov
2021-03-25 19:21:27 +03:00
parent ed409ac1b7
commit abc7c8dc72
8 changed files with 15 additions and 15 deletions

View File

@ -27,7 +27,7 @@ const paragraph = new Paragraph({
});
```
Note that for a `InsertedTextRun` and `DeletedTextRun`, it is not possible to simply call it with only a text as in `new TextRun("some text")`, since the additonal fields for change tracking need to be provided. Similar to a normal `TextRun` you can add additional text properties.
Note that for a `InsertedTextRun` and `DeletedTextRun`, it is not possible to simply call it with only a text as in `new TextRun("some text")`, since the additional fields for change tracking need to be provided. Similar to a normal `TextRun` you can add additional text properties.
```ts
import { Paragraph, TextRun, InsertedTextRun, DeletedTextRun } from "docx";
@ -48,7 +48,7 @@ const paragraph = new Paragraph({
});
```
In addtion to marking text as inserted or deleted, change tracking can also be added via the document settings. This will enable new changes to be tracked as well.
In addition to marking text as inserted or deleted, change tracking can also be added via the document settings. This will enable new changes to be tracked as well.
```ts
import { Document } from "docx";