Skip to content

Commit

Permalink
Refactor prose
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Feb 29, 2020
1 parent c77ea45 commit 0994e9e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ yarn add hast-util-to-dom
npm install hast-util-to-dom
```

## Usage
## Use

This utility is intended for browser use!

```js
import toDOM from 'hast-util-to-dom';
import toDom from 'hast-util-to-dom';

const el = toDOM({
const el = toDom({
type: 'element',
tagName: 'h1',
properties: {},
Expand Down Expand Up @@ -70,7 +70,7 @@ Buddy, that’s the web!

## API

### `toDOM(node[, options])`
### `toDom(node[, options])`

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

Expand Down Expand Up @@ -109,8 +109,8 @@ See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
started.
See [`support.md`][support] for ways to get help.

This project has a [Code of Conduct][coc].
By interacting with this repository, organisation, or community you agree to
This project has a [code of conduct][coc].
By interacting with this repository, organization, or community you agree to
abide by its terms.

## License
Expand Down Expand Up @@ -141,7 +141,7 @@ abide by its terms.

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

[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg
[chat-badge]: https://img.shields.io/badge/chat-spectrum-7b16ff.svg

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

Expand Down

0 comments on commit 0994e9e

Please sign in to comment.