Skip to content

Commit 48aab51

Browse files
committed
Refactor prose
1 parent d5bf449 commit 48aab51

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

readme.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ yarn add hast-util-from-dom
2424
npm install hast-util-from-dom
2525
```
2626

27-
## Usage
27+
## Use
2828

2929
This utility is similar to [`hast-util-from-parse5`][hast-util-from-parse5], but
3030
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:
4040

4141
```js
4242
import inspect from 'unist-util-inspect';
43-
import fromDOM from 'hast-util-from-dom';
43+
import fromDom from 'hast-util-from-dom';
4444

45-
const hast = fromDOM(document);
45+
const hast = fromDom(document);
4646

4747
console.log(inspect.noColor(hast));
4848
```
@@ -65,7 +65,7 @@ root[2]
6565

6666
## API
6767

68-
### `fromDOM(node)`
68+
### `fromDom(node)`
6969

7070
Transform a DOM tree to a [**hast**][hast] [*tree*][tree].
7171

@@ -96,8 +96,8 @@ See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
9696
started.
9797
See [`support.md`][support] for ways to get help.
9898

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
101101
abide by its terms.
102102

103103
## License
@@ -128,7 +128,7 @@ abide by its terms.
128128

129129
[collective]: https://opencollective.com/unified
130130

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
132132

133133
[chat]: https://spectrum.chat/unified/syntax-tree
134134

0 commit comments

Comments
 (0)