Note This repository is automatically generated from the main parser monorepo. Please submit any issues or pull requests there.
Cleans all the rsid tags from an ooxast tree, and merges w:r
elements if they only differ by rsid values.
Rsid's are Word's way of keeping track of edits, but when you are converting or manipulating the ooxast tree you usually do not want to keep this information around anyway. Rsids end up being incredibly annoying as they split up elements which do not need to be split up for the purposes of creating and manipulating the AST.
This package is ESM only. In Node.js (version 12.20+, 14.14+, 16.0+, 18.0+), install as
pnpm add ooxast-util-remove-rsid
# or with yarn
# yarn add ooxast-util-remove-rsid
# or with npm
# npm install ooxast-util-remove-rsid
ooxastUtilRemoveRsid(tree: Root, options?: Options): Root;
Name | Type |
---|---|
tree |
Root |
options? |
Options |
Root
Defined in: lib/ooxast-util-remove-rsid.ts:16
ooxastUtilRemoveRsid(tree: Node<Data>, options?: Options): Node;
Name | Type |
---|---|
tree |
Node <Data > |
options? |
Options |
Node
Defined in: lib/ooxast-util-remove-rsid.ts:17
string
[]
Defined in: lib/ooxast-util-remove-rsid.ts:13
GPL-3.0-or-later © Thomas F. K. Jorna