Deploying to gh-pages from @ dolanmiu/docx@75d62723b6 🚀

This commit is contained in:
dolanmiu
2021-11-29 12:53:41 +00:00
parent 27bb055176
commit 84feccdc69
292 changed files with 342 additions and 325 deletions

View File

@ -59,3 +59,18 @@ const doc = new Document({
},
});
```
If you want to express a style changes, you can add a `revision` to a `TextRun` which need to include all previous style attributes.
```ts
new TextRun({
bold: true,
text: "This text is now bold and was previously not",
revision: {
id: 1,
author: "Firstname Lastname",
date: "2020-10-06T09:05:00Z",
bold: false,
}
}).break()
````