diff --git a/docs/usage/change-tracking.md b/docs/usage/change-tracking.md index 977c69894d..e9ea9cb75e 100644 --- a/docs/usage/change-tracking.md +++ b/docs/usage/change-tracking.md @@ -53,8 +53,11 @@ In addition to marking text as inserted or deleted, change tracking can also be ```ts import { Document } from "docx"; -const doc = new Document({}); -doc.Settings.addTrackRevisions() +const doc = new Document({ + features: { + trackRevisions: true, + }, +}); ``` If you want to express a style changes, you can add a `revision` to a `TextRun` which need to include all previous style attributes.