Skip to content

Commit 5979fc9

Browse files
committed
docs: description node property closeAs, issue #48
1 parent 00ec9b0 commit 5979fc9

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

readme.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,21 @@ const html = render(tree)
166166
```
167167

168168
```html
169-
<img></img>
169+
<img>
170+
```
171+
172+
##### `'closeAs'`
173+
174+
```js
175+
const tree = [ {
176+
tag: 'custom',
177+
closeAs: 'default' // Available types: `tag` | `slash` | `default`
178+
} ]
179+
const html = render(tree, { closingSingleTag: 'closeAs' })
180+
```
181+
182+
```html
183+
<custom>
170184
```
171185

172186
### `quoteAllAttributes`

0 commit comments

Comments
 (0)