@starptech/rehype-minify-whitespace
Collapse whitespace.
Last updated 6 years ago by starptech .
ISC · Original npm · Tarball · package.json
$ gnpm install @starptech/rehype-minify-whitespace 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 0.10.0                                ...           latest (5 years ago)

26 Versions

  • 0.10.0                                ...           5 years ago
  • 0.9.0                                ...           6 years ago
  • 0.8.17                                ...           6 years ago
  • 0.8.14                                ...           6 years ago
  • 0.8.13                                ...           6 years ago
  • 0.8.12                                ...           6 years ago
  • 0.8.10                                ...           6 years ago
  • 0.8.7                                ...           6 years ago
  • 0.8.1                                ...           6 years ago
  • 0.8.0                                ...           6 years ago
  • 0.7.0                                ...           6 years ago
  • 0.6.0                                ...           6 years ago
  • 0.5.3                                ...           6 years ago
  • 0.5.2                                ...           6 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
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (4)

Copyright 2013 - present © cnpmjs.org | Home |