@starptech/rehype-minify-whitespace
Collapse whitespace.
Last updated a year ago by starptech .
ISC · Original npm · Tarball · package.json
$ cnpm 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 (a year ago)

26 Versions

  • 0.10.0                                ...           a year ago
  • 0.9.0                                ...           2 years ago
  • 0.8.17                                ...           2 years ago
  • 0.8.14                                ...           2 years ago
  • 0.8.13                                ...           2 years ago
  • 0.8.12                                ...           2 years ago
  • 0.8.10                                ...           2 years ago
  • 0.8.7                                ...           2 years ago
  • 0.8.1                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.0                                ...           2 years ago
  • 0.5.3                                ...           2 years ago
  • 0.5.2                                ...           2 years ago
  • 0.5.0                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.4                                ...           2 years ago
  • 0.3.2                                ...           2 years ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.3                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 8
This Week 70
This Month 542
Last Day 7
Last Week 309
Last Month 297
Dev Dependencies (4)

Copyright 2014 - 2016 © taobao.org |