Deploying to gh-pages from @ dolanmiu/docx@75d62723b6 🚀
This commit is contained in:
@ -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()
|
||||
````
|
||||
|
Reference in New Issue
Block a user