diff --git a/readme.md b/readme.md index 8bee47d..1ef5c1a 100644 --- a/readme.md +++ b/readme.md @@ -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: {}, @@ -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. @@ -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 @@ -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