Skip to content

Commit 4126592

Browse files
committed
fix: improved language in README.md and removed TOC item
1 parent d6e3554 commit 4126592

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ parse('<p>Hello, World!</p>'); // React.createElement('p', {}, 'Hello, World!')
5050
- [Parser throws an error](#parser-throws-an-error)
5151
- [Is SSR supported?](#is-ssr-supported)
5252
- [Elements aren't nested correctly](#elements-arent-nested-correctly)
53-
- [Warning: validateDOMNesting(...): Whitespace text nodes cannot appear as a child of table](#warning-validatedomnesting-whitespace-text-nodes-cannot-appear-as-a-child-of-table)
5453
- [Don't change case of tags](#dont-change-case-of-tags)
5554
- [TS Error: Property 'attribs' does not exist on type 'DOMNode'](#ts-error-property-attribs-does-not-exist-on-type-domnode)
5655
- [Can I enable `trim` for certain elements?](#can-i-enable-trim-for-certain-elements)
@@ -351,10 +350,10 @@ By default, whitespace is preserved:
351350
parse('<br>\n'); // [React.createElement('br'), '\n']
352351
```
353352

354-
However, whitespace that are invalid under certain nodes like `<table>` will be stripped out.
353+
But certain elements like `<table>` will strip out invalid whitespace:
355354

356355
```js
357-
parse('<table>\n</table>'); // [React.createElement('table')]
356+
parse('<table>\n</table>'); // React.createElement('table')
358357
```
359358

360359
To remove whitespace, enable the `trim` option:

0 commit comments

Comments
 (0)