File tree Expand file tree Collapse file tree 2 files changed +8
-28
lines changed Expand file tree Collapse file tree 2 files changed +8
-28
lines changed Original file line number Diff line number Diff line change 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" ,
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}
Original file line number Diff line number Diff line change 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-
53Transform [ HAST] [ ] to HTML.
64
75## Installation
86
9- [ npm] [ npm-install ] :
7+ [ npm] [ ] :
108
119``` bash
1210npm install hast-util-to-html
1311```
1412
1513## Usage
1614
17- Dependencies:
18-
1915``` javascript
2016var h = require (' hastscript' );
2117var toHTML = require (' hast-util-to-html' );
22- ```
2318
24- Transform:
25-
26- ``` javascript
2719var 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
3731Yields:
@@ -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
You can’t perform that action at this time.
0 commit comments