ooxast-util-remove-rsid
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

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

Contribute

License

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

Package Sidebar

Install

npm i ooxast-util-remove-rsid

Weekly Downloads

0

Version

0.4.0

License

GPL-3.0-or-later

Unpacked Size

13.8 kB

Total Files

7

Last publish

Collaborators

  • tefkah