Skip to content

Latest commit

 

History

History
executable file
·
146 lines (102 loc) · 5.22 KB

File metadata and controls

executable file
·
146 lines (102 loc) · 5.22 KB

Note This repository is automatically generated from the main parser monorepo. Please submit any issues or pull requests there.

ooxast-util-remove-rsid

npm version npm downloads

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.

Contents

What is this?

When should I use this?

Install

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

Use

API


ooxastUtilRemoveRsid()

Signature

ooxastUtilRemoveRsid(tree: Root, options?: Options): Root;

Parameters

Name Type
tree Root
options? Options

Returns

Root

Defined in: lib/ooxast-util-remove-rsid.ts:17

Signature

ooxastUtilRemoveRsid(tree: Node<Data>, options?: Options): Node;

Parameters

Name Type
tree Node<Data>
options? Options

Returns

Node

Defined in: lib/ooxast-util-remove-rsid.ts:18


Options

Properties

rPrRemoveList?

string[]

Defined in: lib/ooxast-util-remove-rsid.ts:14

Syntax tree

Types

Compatibility

Security

Related

Contribute

License

GPL-3.0-or-later © Thomas F. K. Jorna