From e379a7fe04c748a4c2c59128d4a4a2b6ed0252f4 Mon Sep 17 00:00:00 2001 From: younesspotmaster <142569654+younesspotmaster@users.noreply.github.com> Date: Mon, 20 May 2024 04:13:05 +0200 Subject: [PATCH] Document the 'keepOriginalStyles' options (#2549) Co-authored-by: Dolan --- docs/usage/patcher.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/usage/patcher.md b/docs/usage/patcher.md index fecc709dcf0..c2e0915cc91 100644 --- a/docs/usage/patcher.md +++ b/docs/usage/patcher.md @@ -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