Skip to content

Commit c39b019

Browse files
docs(readme): tidy replace example headings
1 parent 278c076 commit c39b019

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@ parse('<p>Hello, World!</p>'); // React.createElement('p', {}, 'Hello, World!')
3535
- [Usage](#usage)
3636
- [replace](#replace)
3737
- [replace with TypeScript](#replace-with-typescript)
38-
- [replace examples](#replace-examples)
39-
- [replace element and children](#replace-element-and-children)
40-
- [replace element attributes](#replace-element-attributes)
41-
- [replace and remove element](#replace-and-remove-element)
38+
- [replace element and children](#replace-element-and-children)
39+
- [replace element attributes](#replace-element-attributes)
40+
- [replace and remove element](#replace-and-remove-element)
4241
- [library](#library)
4342
- [htmlparser2](#htmlparser2)
4443
- [trim](#trim)
@@ -202,9 +201,7 @@ const options: HTMLReactParserOptions = {
202201

203202
If you're having issues with `domNode instanceof Element`, try this [alternative solution](https://github.com/remarkablemark/html-react-parser/issues/221#issuecomment-771600574).
204203

205-
#### replace examples
206-
207-
##### replace element and children
204+
#### replace element and children
208205

209206
Replace the element and its children (see [demo](https://repl.it/@remarkablemark/html-react-parser-replace-example)):
210207

@@ -256,7 +253,7 @@ HTML output:
256253

257254
<!-- prettier-ignore-end -->
258255

259-
##### replace element attributes
256+
#### replace element attributes
260257

261258
Convert DOM attributes to React props with `attributesToProps`:
262259

@@ -285,7 +282,7 @@ HTML output:
285282
<div class="prettify" style="background:#fff;text-align:center"></div>
286283
```
287284

288-
##### replace and remove element
285+
#### replace and remove element
289286

290287
[Exclude](https://repl.it/@remarkablemark/html-react-parser-56) an element from rendering by replacing it with `<React.Fragment>`:
291288

0 commit comments

Comments
 (0)