rehype-minify-whitespace
rehype plugin to collapse whitespace
Last updated 3 months ago by wooorm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install rehype-minify-whitespace 
SYNC missed versions from official npm registry.

rehype-minify-whitespace

Build Coverage Downloads Size Sponsors Backers Chat

Collapse white-space.

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

Install

npm:

npm install rehype-minify-whitespace

Example

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

Contribute

See contributing.md in rehypejs/.github for ways to get started. See support.md for ways to get help.

This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.

License

MIT © Titus Wormer

Current Tags

  • 4.0.4                                ...           latest (3 months ago)

13 Versions

  • 4.0.4                                ...           3 months ago
  • 4.0.3                                ...           4 months ago
  • 4.0.2                                ...           4 months ago
  • 4.0.1                                ...           6 months ago
  • 4.0.0                                ...           6 months ago
  • 3.0.0                                ...           a year ago
  • 2.0.4                                ...           a year ago
  • 2.0.3                                ...           3 years ago
  • 2.0.2                                ...           3 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago

Copyright 2014 - 2017 © taobao.org |