Skip to content

Commit 3a6b54b

Browse files
committed
Update remark
1 parent a04e6fd commit 3a6b54b

File tree

2 files changed

+8
-28
lines changed

2 files changed

+8
-28
lines changed

package.json

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,14 @@
3838
"esmangle": "^1.0.1",
3939
"hastscript": "^3.0.0",
4040
"nyc": "^7.1.0",
41-
"remark-cli": "^1.0.0",
42-
"remark-comment-config": "^4.0.0",
43-
"remark-github": "^5.0.0",
44-
"remark-lint": "^4.0.0",
45-
"remark-usage": "^4.0.0",
46-
"remark-validate-links": "^4.0.0",
41+
"remark-cli": "^2.1.0",
42+
"remark-preset-wooorm": "^1.0.0",
4743
"tape": "^4.0.0",
4844
"unist-builder": "^1.0.1",
4945
"xo": "^0.17.0"
5046
},
5147
"scripts": {
52-
"build-md": "remark . --quiet --frail",
48+
"build-md": "remark . --quiet --frail --output",
5349
"build-bundle": "browserify index.js --bare -s hastUtilToHTML > hast-util-to-html.js",
5450
"build-mangle": "bundle-collapser hast-util-to-html.js | esmangle > hast-util-to-html.min.js",
5551
"build": "npm run build-md && npm run build-bundle && npm run build-mangle",
@@ -76,16 +72,6 @@
7672
"branches": 100
7773
},
7874
"remarkConfig": {
79-
"output": true,
80-
"plugins": [
81-
"comment-config",
82-
"github",
83-
"lint",
84-
"usage",
85-
"validate-links"
86-
],
87-
"settings": {
88-
"bullet": "*"
89-
}
75+
"presets": "wooorm"
9076
}
9177
}

readme.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
# hast-util-to-html [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
22

3-
<!--lint disable heading-increment list-item-spacing-->
4-
53
Transform [HAST][] to HTML.
64

75
## Installation
86

9-
[npm][npm-install]:
7+
[npm][]:
108

119
```bash
1210
npm install hast-util-to-html
1311
```
1412

1513
## Usage
1614

17-
Dependencies:
18-
1915
```javascript
2016
var h = require('hastscript');
2117
var toHTML = require('hast-util-to-html');
22-
```
2318

24-
Transform:
25-
26-
```javascript
2719
var tree = h('.alpha', [
2820
'bravo ',
2921
h('b', 'charlie'),
@@ -32,6 +24,8 @@ var tree = h('.alpha', [
3224
download: true
3325
}, 'foxtrot')
3426
]);
27+
28+
console.log(toHTML(tree));
3529
```
3630

3731
Yields:
@@ -145,7 +139,7 @@ you completely trust the content.
145139

146140
[codecov]: https://codecov.io/github/wooorm/hast-util-to-html
147141

148-
[npm-install]: https://docs.npmjs.com/cli/install
142+
[npm]: https://docs.npmjs.com/cli/install
149143

150144
[license]: LICENSE
151145

0 commit comments

Comments
 (0)