1
- # hast-util-transparent [ ![ Build ] [ build-badge ]] [ build ] [ ![ Coverage ] [ coverage-badge ]] [ coverage ] [ ![ Downloads ] [ downloads-badge ]] [ downloads ] [ ![ Chat ] [ chat-badge ]] [ chat ]
1
+ # hast-util-transparent
2
2
3
- Check if a [ node] [ ] is a [ ** transparent** ] [ spec ] [ element] [ ] .
3
+ [ ![ Build] [ build-badge ]] [ build ]
4
+ [ ![ Coverage] [ coverage-badge ]] [ coverage ]
5
+ [ ![ Downloads] [ downloads-badge ]] [ downloads ]
6
+ [ ![ Size] [ size-badge ]] [ size ]
7
+ [ ![ Sponsors] [ sponsors-badge ]] [ collective ]
8
+ [ ![ Backers] [ backers-badge ]] [ collective ]
9
+ [ ![ Chat] [ chat-badge ]] [ chat ]
4
10
5
- ## Installation
11
+ [ ** hast** ] [ hast ] utility to check if ` node ` is a [ * transparent* ] [ spec ]
12
+ [ * element* ] [ element ] .
13
+
14
+ ## Install
6
15
7
16
[ npm] [ ] :
8
17
9
- ``` bash
18
+ ``` sh
10
19
npm install hast-util-transparent
11
20
```
12
21
13
22
## Usage
14
23
15
- ``` javascript
24
+ ``` js
16
25
var transparent = require (' hast-util-transparent' )
17
26
18
27
transparent ({
@@ -33,23 +42,25 @@ transparent({
33
42
34
43
### ` transparent(node) `
35
44
36
- Check if the given value is a [ ** transparent** ] [ spec ] [ element] [ ] .
45
+ Check if the given value is a [ * transparent* ] [ spec ] [ * element* ] [ element ] .
37
46
38
47
###### Parameters
39
48
40
- ` node ` (` * ` ) — Value to check.
49
+ * ` node ` (` * ` ) — Value to check, probably [ ` Element ` ] [ element ] .
41
50
42
51
###### Returns
43
52
44
53
` boolean ` — whether ` node ` passes the test.
45
54
46
55
## Contribute
47
56
48
- See [ ` contributing.md ` in ` syntax-tree/hast ` ] [ contributing ] for ways to get
57
+ See [ ` contributing.md ` in ` syntax-tree/.github ` ] [ contributing ] for ways to get
49
58
started.
59
+ See [ ` support.md ` ] [ support ] for ways to get help.
50
60
51
- This organisation has a [ Code of Conduct] [ coc ] . By interacting with this
52
- repository, organisation, or community you agree to abide by its terms.
61
+ This project has a [ Code of Conduct] [ coc ] .
62
+ By interacting with this repository, organisation, or community you agree to
63
+ abide by its terms.
53
64
54
65
## License
55
66
@@ -69,22 +80,34 @@ repository, organisation, or community you agree to abide by its terms.
69
80
70
81
[ downloads ] : https://www.npmjs.com/package/hast-util-transparent
71
82
83
+ [ size-badge ] : https://img.shields.io/bundlephobia/minzip/hast-util-transparent.svg
84
+
85
+ [ size ] : https://bundlephobia.com/result?p=hast-util-transparent
86
+
87
+ [ sponsors-badge ] : https://opencollective.com/unified/sponsors/badge.svg
88
+
89
+ [ backers-badge ] : https://opencollective.com/unified/backers/badge.svg
90
+
91
+ [ collective ] : https://opencollective.com/unified
92
+
72
93
[ chat-badge ] : https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
73
94
74
- [ chat ] : https://spectrum.chat/unified/rehype
95
+ [ chat ] : https://spectrum.chat/unified/syntax-tree
75
96
76
97
[ npm ] : https://docs.npmjs.com/cli/install
77
98
78
99
[ license ] : license
79
100
80
101
[ author ] : https://wooorm.com
81
102
82
- [ node ] : https://github.com/syntax-tree/hast#node
103
+ [ contributing ] : https://github.com/syntax-tree/.github/blob/master/contributing.md
83
104
84
- [ element ] : https://github.com/syntax-tree/hast#element
105
+ [ support ] : https://github.com/syntax-tree/.github/blob/master/support.md
106
+
107
+ [ coc ] : https://github.com/syntax-tree/.github/blob/master/code-of-conduct.md
85
108
86
109
[ spec ] : https://html.spec.whatwg.org/#transparent-content-models
87
110
88
- [ contributing ] : https://github.com/syntax-tree/hast/blob/master/contributing.md
111
+ [ hast ] : https://github.com/syntax-tree/hast
89
112
90
- [ coc ] : https://github.com/syntax-tree/hast/blob/master/code-of-conduct.md
113
+ [ element ] : https://github.com/syntax-tree/hast#element
0 commit comments