Skip to content

Commit

Permalink
Document the 'keepOriginalStyles' options (#2549)
Browse files Browse the repository at this point in the history
Co-authored-by: Dolan <[email protected]>
  • Loading branch information
younesspotmaster and dolanmiu committed May 20, 2024
1 parent 022b25c commit e379a7f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/usage/patcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ interface Patch {
| type | `PatchType` | Required | `DOCUMENT`, `PARAGRAPH` |
| children | `FileChild[] or ParagraphChild[]` | Required | The contents to replace with. A `FileChild` is a `Paragraph` or `Table`, whereas a `ParagraphChild` is typical `Paragraph` children. |


The patcher also takes in a `keepOriginalStyles` boolean, which will preserve the styles of the patched text when set to true.

### How to patch existing document

1. Open your existing word document in your favorite Word Processor
Expand Down

0 comments on commit e379a7f

Please sign in to comment.