0.10.0 • Published 5 years ago

@starptech/rehype-minify-whitespace v0.10.0

Weekly downloads
3,393
License
ISC
Repository
-
Last release
5 years ago

@starptech/rehype-minify-whitespace

Collapse whitespace.

Normally, collapses to a single space. If newlines: true, collapses white-space containing newlines to '\n' instead of ' '.

Installation

npm install --save @starptech/rehype-minify-whitespace

Usage

In
<h1>Heading</h1>
···→ →···foo···→
<p><strong>This</strong> and <em>that</em></p>
Out
<h1>Heading</h1>
foo
<p><strong>This</strong> and <em>that</em></p>

Api

node.data.ignore

When this property is true the node is skipped for whitespace handling.

node.data.preserveWhitespace

When this property is true the node is skipped for whitespace handling.

Caveats

The implementation is a modified version of Rehype rehype-minify-whitespace 2.0.3

0.10.0

5 years ago

0.9.0

5 years ago

0.8.17

5 years ago

0.8.14

5 years ago

0.8.13

5 years ago

0.8.12

5 years ago

0.8.10

5 years ago

0.8.7

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.0

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.4

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago