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