|
8 | 8 | [![Backers][backers-badge]][collective]
|
9 | 9 | [![Chat][chat-badge]][chat]
|
10 | 10 |
|
11 |
| -[**hast**][hast] utility to transform to HTML. |
| 11 | +[**hast**][hast] utility to serialize to HTML. |
12 | 12 |
|
13 | 13 | ## Install
|
14 | 14 |
|
@@ -102,8 +102,8 @@ Not used in the SVG space.
|
102 | 102 |
|
103 | 103 | ###### `options.collapseEmptyAttributes`
|
104 | 104 |
|
105 |
| -Collapse empty attributes: `class=""` is stringified as `class` instead |
106 |
| -(`boolean`, default: `false`). |
| 105 | +Collapse empty attributes: get `class` instead of `class=""` (`boolean`, |
| 106 | +default: `false`). |
107 | 107 | **Note**: boolean attributes, such as `hidden`, are always collapsed.
|
108 | 108 |
|
109 | 109 | Not used in the SVG space.
|
@@ -139,8 +139,8 @@ padding them on the right as well (`,·`, where `·` represents a space)
|
139 | 139 |
|
140 | 140 | ###### `options.tightAttributes`
|
141 | 141 |
|
142 |
| -Join attributes together, without white-space, if possible: `class="a b" |
143 |
| -title="c d"` is stringified as `class="a b"title="c d"` instead to save bytes |
| 142 | +Join attributes together, without white-space, if possible: get |
| 143 | +`class="a b"title="c d"` instead of `class="a b" title="c d"` to save bytes |
144 | 144 | (`boolean`, default: `false`).
|
145 | 145 | **Note**: creates invalid (but working) markup.
|
146 | 146 |
|
@@ -191,8 +191,8 @@ See [`contributing.md` in `syntax-tree/.github`][contributing] for ways to get
|
191 | 191 | started.
|
192 | 192 | See [`support.md`][support] for ways to get help.
|
193 | 193 |
|
194 |
| -This project has a [Code of Conduct][coc]. |
195 |
| -By interacting with this repository, organisation, or community you agree to |
| 194 | +This project has a [code of conduct][coc]. |
| 195 | +By interacting with this repository, organization, or community you agree to |
196 | 196 | abide by its terms.
|
197 | 197 |
|
198 | 198 | ## License
|
@@ -223,7 +223,7 @@ abide by its terms.
|
223 | 223 |
|
224 | 224 | [collective]: https://opencollective.com/unified
|
225 | 225 |
|
226 |
| -[chat-badge]: https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg |
| 226 | +[chat-badge]: https://img.shields.io/badge/chat-spectrum-7b16ff.svg |
227 | 227 |
|
228 | 228 | [chat]: https://spectrum.chat/unified/syntax-tree
|
229 | 229 |
|
|
0 commit comments