Skip to content

Commit a82d96b

Browse files
committed
Refactor docs
1 parent 03383a8 commit a82d96b

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,13 @@
2929
"browserify": "^13.0.0",
3030
"esmangle": "^1.0.1",
3131
"istanbul": "^0.4.0",
32-
"remark": "^4.0.0",
33-
"remark-comment-config": "^3.0.0",
34-
"remark-github": "^4.0.1",
35-
"remark-lint": "^3.0.0",
36-
"remark-usage": "^3.0.0",
37-
"remark-validate-links": "^3.0.0",
32+
"remark-cli": "^2.1.0",
33+
"remark-preset-wooorm": "^1.0.0",
3834
"tape": "^4.4.0",
3935
"xo": "^0.17.0"
4036
},
4137
"scripts": {
42-
"build-md": "remark . --quiet --frail",
38+
"build-md": "remark . --quiet --frail --output",
4339
"build-bundle": "browserify index.js --bare -s hastUtilWhitespace > hast-util-whitespace.js",
4440
"build-mangle": "esmangle hast-util-whitespace.js > hast-util-whitespace.min.js",
4541
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
@@ -53,5 +49,8 @@
5349
"ignores": [
5450
"hast-util-is-element.js"
5551
]
52+
},
53+
"remarkConfig": {
54+
"presets": "wooorm"
5655
}
5756
}

readme.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ whitespace**][spec].
1111
npm install hast-util-whitespace
1212
```
1313

14-
**hast-util-whitespace** is also available as an AMD, CommonJS, and
15-
globals module, [uncompressed and compressed][releases].
16-
1714
## Usage
1815

1916
Dependencies:
@@ -42,12 +39,12 @@ whitespace({
4239

4340
### `whitespace(node|value)`
4441

45-
**Parameters**:
42+
###### Parameters
4643

4744
* `node` ([`Node`][node], optional) — Node whose `value` to check.
4845
* `value` (`string`, optional) — Value to check.
4946

50-
**Returns**:
47+
###### Returns
5148

5249
`boolean` — Whether the `value` (of [`node`][text]) is inter-element
5350
white-space: consisting of zero or more of space, tab (`\t`),
@@ -69,8 +66,6 @@ line feed (`\n`), carriage return (`\r`), or form feed (`\f`).
6966

7067
[npm]: https://docs.npmjs.com/cli/install
7168

72-
[releases]: https://github.com/wooorm/hast-util-whitespace/releases
73-
7469
[license]: LICENSE
7570

7671
[author]: http://wooorm.com

0 commit comments

Comments
 (0)