Wilk Maia a89ee463e6 Fix style being missed on patchDocument
There were scenarios in which patching a document would result in loss
of style for the template runs and, possibly, their right-adjacent run
as well (post-splitting). That was due to the run style elements not
being added to the newly created runs.

This commit addresses this issue by introducing a new, optional, flag
for the `patchDocument` function: `keepOriginalStyles`. It defaults to
`false` (current behavior) and, when `true`, ensures that there is no
loss of styling.

This should address https://github.com/dolanmiu/docx/issues/2293.
2023-10-18 12:58:01 -03:00
2023-06-15 21:15:39 +01:00
2023-02-24 02:55:53 +00:00
2023-07-21 20:11:52 +01:00
2023-09-10 15:57:48 +02:00
2021-12-02 14:57:35 -06:00
2023-06-08 13:30:31 +01:00
2023-06-12 18:43:29 +01:00
2023-06-13 20:11:04 +01:00
2023-03-18 21:27:08 +00:00
2022-11-26 19:33:58 +00:00
2020-08-01 17:49:25 +01:00
2018-02-10 17:56:52 +00:00
2016-03-26 23:43:57 +00:00
2023-09-26 23:00:51 +01:00
2023-09-26 23:00:51 +01:00
2023-07-04 12:38:54 +01:00
2023-06-08 13:30:31 +01:00
2023-09-26 22:59:32 +01:00

clippy the assistant

Easily generate and modify .docx files with JS/TS. Works for Node and on the Browser.


NPM version Downloads per month GitHub Action Workflow Status Known Vulnerabilities PRs Welcome codecov

drawing

Demo

Browser

Here are examples of docx being used with basic HTML/JS in a browser environment:

Here are examples of docx working in Angular:

Here are examples of docx working in React:

Here is an example of docx working in Vue.js:

Node

Press endpoint on the RunKit website:

RunKit Instructions

More here

How to use & Documentation

Please refer to the documentation at https://docx.js.org/ for details on how to use this library, examples and much more!

Examples

Check the demo folder for examples.

Contributing

Read the contribution guidelines here.

Used by

drawing drawing drawing drawing drawing drawing drawing drawing drawing drawing drawing drawing drawing drawing

...and many more!


patreon browserstack

Made with 💖

Description
Languages
TypeScript 100%