From 7ee5f95a1836aa01bbe263517d9436fedc31c101 Mon Sep 17 00:00:00 2001 From: younesspotmaster <142569654+younesspotmaster@users.noreply.github.com> Date: Wed, 17 Jan 2024 10:24:29 +0100 Subject: [PATCH] Document the 'keepOriginalStyles' options --- docs/usage/patcher.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/usage/patcher.md b/docs/usage/patcher.md index fecc709dcf..c2e0915cc9 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