@@ -24,7 +24,7 @@ yarn add hast-util-from-dom
24
24
npm install hast-util-from-dom
25
25
```
26
26
27
- ## Usage
27
+ ## Use
28
28
29
29
This utility is similar to [ ` hast-util-from-parse5 ` ] [ hast-util-from-parse5 ] , but
30
30
is intended for browser use and therefore relies on the native DOM API instead
@@ -40,9 +40,9 @@ Suppose `example.js` is a bundled version of something like this:
40
40
41
41
``` js
42
42
import inspect from ' unist-util-inspect' ;
43
- import fromDOM from ' hast-util-from-dom' ;
43
+ import fromDom from ' hast-util-from-dom' ;
44
44
45
- const hast = fromDOM (document );
45
+ const hast = fromDom (document );
46
46
47
47
console .log (inspect .noColor (hast));
48
48
```
@@ -65,7 +65,7 @@ root[2]
65
65
66
66
## API
67
67
68
- ### ` fromDOM (node)`
68
+ ### ` fromDom (node)`
69
69
70
70
Transform a DOM tree to a [ ** hast** ] [ hast ] [ * tree* ] [ tree ] .
71
71
@@ -96,8 +96,8 @@ See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
96
96
started.
97
97
See [ ` support.md ` ] [ support ] for ways to get help.
98
98
99
- This project has a [ Code of Conduct ] [ coc ] .
100
- By interacting with this repository, organisation , or community you agree to
99
+ This project has a [ code of conduct ] [ coc ] .
100
+ By interacting with this repository, organization , or community you agree to
101
101
abide by its terms.
102
102
103
103
## License
@@ -128,7 +128,7 @@ abide by its terms.
128
128
129
129
[ collective ] : https://opencollective.com/unified
130
130
131
- [ chat-badge ] : https://img.shields.io/badge/join%20the%20community-on%20spectrum -7b16ff.svg
131
+ [ chat-badge ] : https://img.shields.io/badge/chat-spectrum -7b16ff.svg
132
132
133
133
[ chat ] : https://spectrum.chat/unified/syntax-tree
134
134
0 commit comments