File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
# hastscript [ ![ Build Status] [ travis-badge ]] [ travis ] [ ![ Coverage Status] [ codecov-badge ]] [ codecov ]
2
2
3
+ <!-- lint disable heading-increment-->
4
+
3
5
[ Hyperscript] [ ] (and [ ` virtual-hyperscript ` ] [ virtual-hyperscript ] )
4
6
compatible DSL for creating virtual [ HAST] [ ] trees.
5
7
6
8
## Installation
7
9
8
- [ npm] [ npm-install ] :
10
+ [ npm] [ ] :
9
11
10
12
``` bash
11
13
npm install hastscript
@@ -67,7 +69,7 @@ Yields:
67
69
68
70
DSL for creating virtual [ HAST] [ ] trees.
69
71
70
- ** Parameters** :
72
+ ###### Parameters
71
73
72
74
* ` selector ` (` string ` , optional)
73
75
— Simple CSS selector, e.g., tag names (` foo ` ), IDs (` #bar ` )
@@ -81,7 +83,9 @@ DSL for creating virtual [HAST][] trees.
81
83
— (List of) child nodes, when strings are encountered,
82
84
they are normalised to [ ` text ` ] [ text ] nodes.
83
85
84
- ** Returns** : [ ` Node ` ] [ hast-node ] — A HAST node.
86
+ ###### Returns
87
+
88
+ [ ` Node ` ] [ hast-node ] — A HAST node.
85
89
86
90
## License
87
91
@@ -97,7 +101,7 @@ DSL for creating virtual [HAST][] trees.
97
101
98
102
[ codecov ] : https://codecov.io/github/wooorm/hastscript
99
103
100
- [ npm-install ] : https://docs.npmjs.com/cli/install
104
+ [ npm ] : https://docs.npmjs.com/cli/install
101
105
102
106
[ releases ] : https://github.com/wooorm/hastscript/releases
103
107
You can’t perform that action at this time.
0 commit comments